From VDP to Bounty: How I Earned $250 by Finding an Open Redirect
A SAML single sign-on endpoint accepted a user-controlled redirect destination nested inside the URL-encoded RelayState parameter, so the application would send the browser to an external domain. An attacker could craft a link on the trusted domain that redirects victims to a phishing site.
medium.com
Published on medium.com
Discover how you can earn an easy $100 in 5 minutes by discovering this unique bug in Quick & Easy $100 Bug That You Can Find In 5 minutes
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
Likely the endpoint read the redirect destination from the user-supplied RelayState value and did not restrict it to trusted domains.
Impact
An attacker could build a link starting on the trusted domain that sends users to an attacker-chosen site, making phishing more convincing; the author notes that further impacts such as token theft or account takeover would need separate validation.
What the attacker needed
Victim clicks a crafted link; no account needed to trigger redirect
How it was found
- Go through the application login flow and inspect each request in the browser's network tab.
- Find the SAML endpoint whose RelayState parameter holds URL-encoded data including a redirecturl value.
- Change the redirecturl destination inside the encoded RelayState to an external domain.
- Send the modified request and observe that the browser is redirected to the external destination.
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 destination from the link you clicked and sends your browser there without checking it. Because the link starts with a real, trusted domain, people are more likely to click it, and the attacker can then land them on a fake login page. Here the destination was hidden inside another encoded value, which made it easy to overlook.
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.