Vertical escalation, forced browsing and BFLA
Vertical escalation is when an ordinary user performs a function of a higher role. Horizontal escalation (IDOR) exposes other people's objects of the same role, while the vertical kind is BFLA in the OWASP API list. A hidden button or address is not protection: the server checks the role for every function, method and API version. QA builds a function, method and role matrix and checks the state as an admin.
Pentest · Access control
An ordinary account calls DELETE /api/admin/users/7 and gets 204. Who decided that is allowed?
The admin panel has a "Delete user" button. An ordinary user does not see it, and the team considers the matter closed. But the button only sends the request DELETE /api/admin/users/7, and that request can be sent without the button. This lesson covers how vertical escalation differs from horizontal, why a hidden address is not protection, and how to check systematically that every privileged function is protected on the server.
Two directions of escalation
Mechanism. Horizontal escalation (IDOR, the previous lesson) gives access to other people’s objects of the same role. Vertical escalation lets a user perform a function of a higher role: an ordinary user creates an admin, sets a discount, exports all customers. In the OWASP API list of 2023 this is BFLA (Broken Function Level Authorization, API5). The check here is not "whose object" but "may this role call this function".
Forced browsing is an attempt to open addresses that nothing in the interface links to: /admin, /backup.zip, /api/v1/users/export, /debug. They are found in the application’s JavaScript files, in robots.txt, in API documentation or by dictionary guessing. "Hidden" does not mean "protected": an address missing from the menu is still served if the server does not check the role.
Where protection usually breaks.
- Another method.
GETon an admin address gives 403, butDELETEorPUTskips the check; - Another version or path. The new
/api/v2/…is protected while the old/api/v1/…was left unchecked; - Trusting the client. The role is taken from a field the user can change: a hidden form field, a header
X-Role, a cookierole=user; - Check after the action. The server performs the change and then returns 403: the response says "forbidden" but the state has already changed.
Worked example. An authorized environment, an ordinary user’s token. Reading the list is forbidden:
GET /api/admin/users HTTP/1.1
Authorization: Bearer <token-user>
HTTP/1.1 403 Forbidden
But deleting on the same address goes through:
DELETE /api/admin/users/7 HTTP/1.1
Authorization: Bearer <token-user>
HTTP/1.1 204 No Content
The first 403 creates a false feeling of safety: only the GET method is protected. The tester does not stop at the status and after every attempt checks the state as an admin: was the user really deleted. A status can lie both ways (403 with a changed state, 200 with an error in the body). To be systematic, build a matrix: rows are functions and methods, columns are roles.
| Function | user | admin |
|---|---|---|
| GET /admin/users | 403 | 200 |
| DELETE /admin/users/7 | 403 | 204 |
| GET /export.csv | 403 | 200 |
The cells hold the expected statuses; any "user" cell with a status other than 401/403/404 is a finding. A separate "no token" column gives 401.
A real case. In October 2023 Cisco reported active exploitation of CVE-2023-20198 in the IOS XE web interface: before the fix an unauthenticated remote attacker could create a local account with the highest privilege level (privilege 15). Devices with the web interface enabled were affected. The CVSS 3.1 score was 10.0. According to CISA, attackers combined it with a second flaw (CVE-2023-20273, command injection) to run commands as root. A privileged function (creating an account) was reachable without a rights check, and the web interface itself was visible from the internet. Mitigation: disable the HTTP server on the device until a fix was available.
Limits. The matrix checks what you know about. Unknown addresses are searched separately: in JS files, documentation (Swagger/OpenAPI), version history. Path-guessing tools (ffuf, gobuster) are appropriate only within the scope. A list of "what is closed in the application" is better taken from the developers than reconstructed from responses.
Common mistakes.
- Concluding from one method or one status. Protection of individual methods and versions is checked separately;
- Relying on robots.txt or a long address. That is not authorization;
- Keeping the role in a cookie or a JWT without a signature and a server-side check: the client changes it on its own.
Check yourself
An ordinary user sends PUT /api/admin/settings and gets 403. Is that enough to close the check?
Answer
No. The state must be checked as an admin: were the settings changed. Some handlers perform the change and then refuse. Also check the other methods of the same address and the old API version.
How does forced browsing differ from IDOR?
Answer
IDOR substitutes someone else’s identifier into a known function, while forced browsing looks for addresses and functions the interface does not link to. Both flaws are about a missing server-side check, but the first is about object ownership, the second about access to the function or resource itself.