Publication Type
Journal Article
Version
submittedVersion
Publication Date
2-2022
Abstract
Access control (AC) is an important security mechanism used in software systems to restrict access to sensitive resources. Therefore, it is essential to validate the correctness of AC implementations with respect to policy specifications or intended access rights. However, in practice, AC policy specifications are often missing or poorly documented; in some cases, AC policies are hard-coded in business logic implementations. This leads to difficulties in validating the correctness of policy implementations and detecting AC defects.In this paper, we present a semi-automated framework for reverse-engineering of AC policies from Web applications. Our goal is to learn and recover role-based access control (RBAC) policies from implementations, which are then used to validate implemented policies and detect AC issues. Our framework, built on top of a suite of security tools, automatically explores a given Web application, mines domain input specifications from access logs, and systematically generates and executes more access requests using combinatorial test generation. To learn policies, we apply machine learning on the obtained data to characterize relevant attributes that influence AC. Finally, the inferred policies are presented to the security engineer, for validation with respect to intended access rights and for detecting AC issues. Inconsistent and insufficient policies are highlighted as potential AC issues, being either vulnerabilities or implementation errors.We evaluated our approach on four Web applications (three open-source and a proprietary one built by our industry partner) in terms of the correctness of inferred policies. We also evaluated the usefulness of our approach by investigating whether it facilitates the detection of AC issues. The results show that 97.8% of the inferred policies are correct with respect to the actual AC implementation; the analysis of these policies led to the discovery of 64 AC issues that were reported to the developers.
Keywords
Access control testing, Reverse engineering, Access control policies, Machine learning
Discipline
Information Security | Software Engineering
Research Areas
Software and Cyber-Physical Systems
Publication
Journal of Systems and Software
Volume
184
First Page
1
Last Page
18
ISSN
0164-1212
Identifier
10.1016/j.jss.2021.111109
Publisher
Elsevier
Citation
LE, Ha Thanh; SHAR, Lwin Khin; BIANCULLI, Domenico; BRIAND, Lionel C.; and NGUYEN, Cu Duy.
Automated reverse engineering of role-based access control policies of web applications. (2022). Journal of Systems and Software. 184, 1-18.
Available at: https://ink.library.smu.edu.sg/sis_research/6407
Copyright Owner and License
Authors
Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-No Derivative Works 4.0 International License.
Additional URL
https://doi.org/10.1016/j.jss.2021.111109