Open Redirect Simple Bug, Powerful Chains: Phishing Se OAuth Bypass Tak! (Hinglish Mein)
The author found an open redirect on a logout endpoint that accepted an arbitrary redirect parameter, and chained it with an OAuth flow so the OAuth code was delivered to an attacker-controlled domain. This allowed the author to obtain the victim's Google OAuth code and complete an account takeover chain.
Open Redirect: Attacker: "Visitor ko yahan se evil building mein le jaao" — forged note Receptionist: "Theek hai!" — blindly follow karta hai! 😱
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
Impact
An attacker could steal a victim's OAuth authorisation code and take over their account, though the author only demonstrated this on their own test account.
What the attacker needed
A victim who starts the OAuth login flow; an open redirect on the same site; attacker-controlled domain to receive the code
How it was found
- Find a logout endpoint that takes a redirect parameter pointing to the site's own home page.
- Replace the redirect value with an external domain and confirm the browser is sent there.
- Nest that logout URL inside the OAuth redirect_uri parameter of the Google callback endpoint.
- Complete the OAuth flow and observe the authorisation code arriving on the external domain.
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.
An open redirect is when a website takes a link parameter and sends the visitor to whatever address is supplied, without checking it belongs to the site. Because the link starts with the trusted site's name, people trust it and click. Here the author used that trusted-looking link inside a login flow so the login code ended up on a site the attacker controlled.
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.