Skip to content

Commit dad3a28

Browse files
[API Shield] Update BOLA vulnerability detections doc (#22178)
* feedback fixes * fix enumeration description * pcx feedback
1 parent d3ee3a3 commit dad3a28

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

public/__redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@
199199

200200
# api-shield
201201
/api-shield/security/sequential-abuse-detection/ /api-shield/security/sequence-analytics/ 301
202+
/api-shield/security/bola-attack-detection/ /api-shield/security/bola-vulnerability-detection/ 301
202203

203204
#autorag
204205
/autorag/usage/recipes/ /autorag/how-to/ 301

src/content/docs/api-shield/security/bola-attack-detection.mdx renamed to src/content/docs/api-shield/security/bola-vulnerability-detection.mdx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
pcx_content_type: concept
33
type: overview
4-
title: Broken Object Level Authorization attack detection
4+
title: Broken Object Level Authorization vulnerability detection
55
sidebar:
66
badge:
77
text: Beta
@@ -11,21 +11,21 @@ sidebar:
1111

1212
import { Badge } from "~/components";
1313

14-
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.
1515

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.
1717

1818
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.
1919

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.
2121

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**.
2323

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 string or header have that value duplicated in an unexpected, similar location.
2525

2626
This behavior may be indicative of attackers trying to confuse the API’s authorization system and bypass security controls.
2727

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.
2929

3030
:::note
3131
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
3737

3838
### Parameter pollution attack
3939

40-
**Endpoint**: `GET /api/v1/credit-cards/{cardId}`
40+
**Endpoint**: `GET /api/v1/orders/{orderId}`
4141

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`)
4445

4546
### BOLA enumeration attack
4647

47-
**Endpoint**: `GET /api/v1/credit-cards/{cardId}`
48+
**Endpoint**: `GET /api/v1/users/{userId}/credit-cards`
4849

49-
- **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.
5153

5254
## Process
5355

0 commit comments

Comments
 (0)