Cyber Risks · PortSwigger Research

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