How i found my first open redirect
The login page's ReturnUrl parameter accepted a protocol-relative URL, so after authentication the user could be sent to an external site. An attacker could craft a login link that redirects the victim to a site of their choosing once they log in.
Published on medium.com
Hello everyone, this is my first bugbounty report, so I apologize if I make any mistakes.
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 ReturnUrl parameter was used for redirection without checking that the destination stayed on the same site, and a protocol-relative value slipped past the filtering.
Impact
An attacker could redirect a logged-in user to any external site, lending the official domain's credibility to phishing or malware pages.
What the attacker needed
Victim clicks a crafted login link; victim logs in
How it was found
- Visit a product page while logged out and observe the login URL with a ReturnUrl parameter.
- Change ReturnUrl to another internal page and confirm the redirect after login.
- Try a protocol-relative external address and observe it fails or reloads.
- Append the site's own tracking parameter after a question mark to the external address.
- Log in and get redirected to the external site.
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 you to whatever address is in it, even a different website. Here the login page had a 'return to this page after login' setting, and it could be pointed at an outside site. That lets a scammer share a genuine-looking login link that ends up on a fake page.
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.