Cyber Risks · PortSwigger Research

Lab: Authentication bypass via flawed state machine

Summary: PortSwigger's Web Security Academy lab describes a login flow that assumes users complete each step in order: after the POST /login request, the next request is GET /role-selector, where the user picks a role before reaching the home page. Dropping that role-selector request and browsing to the home page causes the account's role to default to administrator, giving access to the admin panel and the ability to delete the user carlos.

Key Takeaway: The bypass needs no exploit payload, only a skipped step: when a role assignment is left to a default rather than set explicitly, an unprivileged account can land in the administrator role by omitting one request.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related