QA Interview Hub · Knowledge base · Quizzes · Українська

Penetration Testing › Web vulnerabilities: OWASP Top 10:2025

Broken Access Control: IDOR, privilege escalation and SSRF

Broken Access Control occurs when the server does not check, for every request, who the user is and whether they may perform this action on this object. It covers horizontal escalation (IDOR), vertical escalation and SSRF, where the server itself calls an internal network on a supplied URL. A URL hidden in the interface is not protected, and SSRF is limited with a host allowlist and least-privilege roles.

An online shop hides the "Admin" button from ordinary users. A tester manually opens /admin/users and sees the list. The interface protected nothing: the permission check had to be on the server.

Mechanism. For every request the server must check who the user is and whether they may perform this action on this object. Typical violations:

  • Horizontal escalation — access to other users' data at the same level (IDOR: the request carries another object id);
  • Vertical escalation — an ordinary user performs administrator actions;
  • Hidden is not protected: a URL missing from the menu is still reachable if the server does not check it;
  • SSRF (Server-Side Request Forgery) — the server makes a request on its own behalf to a user-supplied URL, and the attacker reaches internal addresses.

SSRF example. A feature "import an image by link". In an authorized environment the tester supplies a URL pointing to the cloud instance metadata address:

POST /import  {"url": "http://169.254.169.254/latest/meta-data/"}

If the response contains metadata, the server reaches the internal network. In the cloud this is dangerous because metadata can hand out temporary role credentials. Defence: an allowlist of permitted hosts, blocking internal ranges, and in AWS requiring IMDSv2 (it needs a token obtained by a separate PUT request with a header, so a simple GET-only SSRF fails) plus least-privilege roles.

Mistakes: checking permissions only in the UI; treating an unpredictable id as protection; blocking only the text "localhost" against SSRF (bypassed with a numeric IP form or a DNS name).

Short answer: "Permissions are checked on the server for every action and object; SSRF is limited with an allowlist and least-privilege roles".

More articles in this chapter