Cyber Risks · PortSwigger Research

Lab: User ID controlled by request parameter with data leakage in redirect

Summary: PortSwigger's Web Security Academy lab demonstrates an access control flaw in which changing the "id" request parameter to carlos returns a redirect to the home page whose body still contains carlos's API key. The lab is solved by logging in as wiener:peter, sending the account request to Burp Repeater, changing the id parameter, and submitting the leaked key.

Why it matters: The sensitive data sits in the body of a redirect response, so a control that only checks the redirect status or destination will miss an API key that is still delivered to the requester.

Read the original at PortSwigger Research ↗

Topics
Vulnerabilities & Patching
Related