Simple Open Redirect Bypass.
A login page accepted a hidden returnToUrl parameter that was meant to redirect users after login, but a server-side filter blocked obvious external URLs. By supplying a URL with three slashes, the filter was bypassed and the application redirected to an external site.
Published on blog.h4rsh4d.com
Was checking the login page for XSS and other stuff. noticed that the login page had one hidden parameter. "returnToUrl"
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 server-side validation checked the URL string in a way that a triple-slash URL did not match, while the browser still resolved it to an external host.
Impact
An attacker could craft a link on the trusted domain that redirects victims to an attacker-controlled site, which may aid phishing.
What the attacker needed
Victim clicks a crafted link
How it was found
- Find the hidden returnToUrl parameter on the login page.
- Try an external URL and observe it is forbidden.
- Try a protocol-relative URL and an IP-based URL, both forbidden.
- Supply a URL with three slashes and observe the redirect succeeds.
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 site lets you pass in a web address and then sends the visitor there. Here the site tried to block outside addresses, but a slightly odd form of the address slipped past the check, so a link on the trusted site could send people to another site.
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.