CAPECattack pattern
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs
High
Official page ↗
- Abstraction
- Standard
- Status
- Draft
- Likelihood of attack
- High
- Typical severity
- High
- CAPEC version
- 3.9
Description
In applications, particularly web applications, access to functionality is mitigated by an authorization framework. This framework maps Access Control Lists (ACLs) to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application, or can run queries for data that they otherwise not supposed to.
Execution flow
1. [Explore] [Survey] The attacker surveys the target application, possibly as a valid and authenticated user
2. [Explore] [Identify Functionality] At each step, the attacker notes the resource or functionality access mechanism invoked upon performing specific actions
3. [Experiment] [Iterate over access capabilities] Possibly as a valid user, the attacker then tries to access each of the noted access mechanisms directly in order to perform functions not constrained by the ACLs.
Prerequisites
• The application must be navigable in a manner that associates elements (subsections) of the application with ACLs.
• The various resources, or individual URLs, must be somehow discoverable by the attacker
• The administrator must have forgotten to associate an ACL or has associated an inappropriately permissive ACL with a particular navigable resource.
Skills required
• [Low] In order to discover unrestricted resources, the attacker does not need special tools or skills. They only have to observe the resources or access mechanisms invoked as each action is performed and then try and access those access mechanisms directly.
Consequences
• Confidentiality, Access Control, Authorization: Gain Privileges
Mitigations
• In a J2EE setting, administrators can associate a role that is impossible for the authenticator to grant users, such as "NoAccess", with all Servlets to which access is guarded by a limited number of servlets visible to, and accessible by, the user.
Having done so, any direct access to those protected Servlets will be prohibited by the web container.
In a more general setting, the administrator must mark every resource besides the ones supposed to be exposed to the user as accessible by a role impossible for the user to assume. The default security setting must be to deny access and then grant access only to those resources intended by business logic.
Related
Att&ck technique · MITRE ATT&CK (1)
- T1574.010 Services File Permissions Weakness sub-technique
Can precede · CAPEC (1)
- CAPEC-17 Using Malicious Files attack pattern
Child of · CAPEC (1)
- CAPEC-122 Privilege Abuse attack pattern
Weakness · CWE (16)
- CWE-1191 On-Chip Debug and Test Interface With Improper Access Control weakness
- CWE-1193 Power-On of Untrusted Execution Core Before Enabling Fabric Access Control weakness
- CWE-1220 Insufficient Granularity of Access Control weakness
- CWE-1297 Unprotected Confidential Information on Device is Accessible by OSAT Vendors weakness
- CWE-1311 Improper Translation of Security Attributes by Fabric Bridge weakness
- CWE-1314 Missing Write Protection for Parametric Data Values weakness
- CWE-1315 Improper Setting of Bus Controlling Capability in Fabric End-point weakness
- CWE-1318 Missing Support for Security Features in On-chip Fabrics or Buses weakness
- CWE-1320 Improper Protection for Outbound Error Messages and Alert Signals weakness
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
- CWE-1327 Binding to an Unrestricted IP Address weakness
- CWE-276 Incorrect Default Permissions weakness
- CWE-285 Improper Authorization weakness
- CWE-434 Unrestricted Upload of File with Dangerous Type weakness
- CWE-693 Protection Mechanism Failure weakness
- CWE-732 Incorrect Permission Assignment for Critical Resource weakness
Referenced by CAPEC · child of (4)
- CAPEC-58 Restful Privilege Elevation attack pattern
- CAPEC-679 Exploitation of Improperly Configured or Implemented Memory Protections attack pattern
- CAPEC-680 Exploitation of Improperly Controlled Registers attack pattern
- CAPEC-681 Exploitation of Improperly Controlled Hardware Security Identifiers attack pattern
Referenced by CWE · attack pattern (16)
- CWE-1191 On-Chip Debug and Test Interface With Improper Access Control weakness
- CWE-1193 Power-On of Untrusted Execution Core Before Enabling Fabric Access Control weakness
- CWE-1220 Insufficient Granularity of Access Control weakness
- CWE-1297 Unprotected Confidential Information on Device is Accessible by OSAT Vendors weakness
- CWE-1311 Improper Translation of Security Attributes by Fabric Bridge weakness
- CWE-1314 Missing Write Protection for Parametric Data Values weakness
- CWE-1315 Improper Setting of Bus Controlling Capability in Fabric End-point weakness
- CWE-1318 Missing Support for Security Features in On-chip Fabrics or Buses weakness
- CWE-1320 Improper Protection for Outbound Error Messages and Alert Signals weakness
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
- CWE-1327 Binding to an Unrestricted IP Address weakness
- CWE-276 Incorrect Default Permissions weakness
- CWE-285 Improper Authorization weakness
- CWE-434 Unrestricted Upload of File with Dangerous Type weakness
- CWE-693 Protection Mechanism Failure weakness
- CWE-732 Incorrect Permission Assignment for Critical Resource weakness