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
- Attackers Exploit UnrealIRCd Flaw That Enables Server-Level Command Injection Cyber Risks · Nov 14, 2026U.S. CISA adds Check Point and UnrealIRCd flaws to its Known Exploited Vulnerabilities catalog Cyber Risks · Nov 14, 2026PostgreSQL Patches 52 Flaws, Including 22-Year-Old Bug Enabling Authenticated RCE Cyber Risks · Nov 13, 2026