Lab: OAuth account hijacking via redirect_uri
Summary: A PortSwigger Web Security Academy lab demonstrates OAuth account hijacking through a redirect_uri misconfiguration in the OAuth provider, letting an attacker steal authorization codes tied to other users' accounts. The exercise requires stealing the admin user's authorization code via an iframe on the exploit server, then using it to log in as admin and delete the user carlos.
What you should know: The admin in this lab always holds an active session with the OAuth service and opens anything sent from the exploit server, so a single misconfigured redirect_uri turns one crafted link into full account takeover.
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