From Open Redirect to Full Account Takeover: Exploiting OAuth Mi
The OAuth callback endpoint accepted a user-controlled parameter that redirected to any domain, so an attacker could send a crafted link that forwarded the victim's authorization code to a server they control. With that code the attacker could take over the victim's account.
In the realm of web security, open redirects are often dismissed as low-severity issues. However, when combined with OAuth misconfiguration, they can escalate to critical vulnerabilities, leading to full account takeovers.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The OAuth callback endpoint trusted a user-supplied parameter to decide the redirect destination without validating it against an allowlist.
Impact
An attacker could obtain a victim's authorization code and use it to take over the account, though the text does not show a working exploit against a live target.
What the attacker needed
Victim clicks a crafted link; victim completes authentication; attacker controls a server
The fix
Redirect URIs should be preregistered and validated against a whitelist, user-controlled parameters should not decide redirect destinations, and PKCE should be used.
How it was found
- Craft a link to the OAuth callback endpoint with the redirect parameter pointing at an attacker-controlled domain.
- Trick a victim into clicking the link and completing authentication.
- Receive the authorization code on the attacker's server.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you log in with a service like Google, the site sends you back to a special address with a short-lived code that proves who you are. This report found that the site let an attacker choose where that code was sent next, so a victim who clicked a link could have their code delivered to the attacker, who then used it to get into the account.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.