You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Broken Object Level Authorization (BOLA) attack is where an application or API fails to properly verify if a user has permission to access specific private data.
14
+
A Broken Object Level Authorization (BOLA) vulnerability is where an application or API fails to properly verify if a user has permission to access specific data.
15
15
16
-
Bugs in the application or API allow attackers to bypass authorization checks and access sensitive information by manipulating and iterating through object identifiers.
16
+
Bugs in the application or API allow attackers to bypass authorization checks and access potentially sensitive information by manipulating and iterating through object identifiers.
17
17
18
18
Vulnerabilities can occur at any time, including in the original application's deployment. However, changes or upgrades to authentication and authorization policies can also introduce these bugs.
19
19
20
-
BOLA attacks are as dangerous as account takeover. A successful BOLA attack allows the attacker to access or change data that they should not have ownership over.
20
+
BOLA vulnerabilities are as dangerous as an account takeover. Successfully exploiting a BOLA vulnerability allows the attacker to access or change data that they should not have ownership over.
21
21
22
-
Cloudflare labels endpoints with BOLA risk when we detect two distinct signals common with BOLA attacks: **Parameter pollution** and **Enumeration**.
22
+
Cloudflare labels endpoints with BOLA risk when we detect two distinct signals common with attacks exploiting BOLA: **Parameter pollution** and **Enumeration**.
23
23
24
-
-**Parameter pollution**: Cloudflare detects anomalies where one or more successful requests containing a value in an expected path, query string, header, or body parameter have that value duplicated in an unexpected, similar location.
24
+
-**Parameter pollution**: Cloudflare detects anomalies where one or more successful requests containing a value in an expected path, query stringor header have that value duplicated in an unexpected, similar location.
25
25
26
26
This behavior may be indicative of attackers trying to confuse the API’s authorization system and bypass security controls.
27
27
28
-
-**Enumeration**: Cloudflare detects anomalies where one or more sessions makes successful requests to any one API endpoint that changes variable values trying to get information from the API.
28
+
-**Enumeration**: Cloudflare continually profiles all sessions on a per-endpoint basis and detects anomalous sessions that successfully request many unique data points from an API endpoint against what is normal.
29
29
30
30
:::note
31
31
Sessions that have more random behavior or repetition have a higher chance of triggering an alert.
@@ -37,17 +37,19 @@ The BOLA enumeration label requires an endpoint to have seen at least 10,000 ses
37
37
38
38
### Parameter pollution attack
39
39
40
-
**Endpoint**: `GET /api/v1/credit-cards/{cardId}`
40
+
**Endpoint**: `GET /api/v1/orders/{orderId}`
41
41
42
-
-**Normal behavior**: `cardId` is sent in a path variable.
43
-
-**Attacker behavior**:`cardId` is also sent as a query parameter, which triggers old and undocumented code that looks for cards in the query parameter that lacks the authorization check: `GET /api/v1/credit-cards/{cardId}?cardId=12345`.
42
+
-**Normal behavior**: `orderId` sent in a path variable like `GET /api/v1/orders/12345`
43
+
-**Attacker behavior**: `orderId` is also sent as a query parameter, triggering old, undocumented code that looks for orders in the query parameter and happens to lack an authorization check: `GET /api/v1/orders/12345?orderId=67890`
44
+
-**Result**: By passing in a bogus order or an order that the attacker owns (`12345`), they are able to trigger the old, undocumented code and access an order that they do not own (`67890`)
-**Normal behavior**: Users request one to two credit cards per session.
50
-
-**Attack behavior**: Attackers request hundreds of credit card values per session.
50
+
-**Normal behavior**: Users request credit cards using only their own `userId`.
51
+
-**Attack behavior**: Attackers request hundreds of `userId` values per session by brute-force iterating through `userIds` found via other methods.
52
+
-**Result**: If the authorization policy is broken for this endpoint, the attacker gains credit card information on every user account they request it for.
0 commit comments