Bug Bounty Series — Part 2 (Open Redirect)
The article explains open redirect vulnerabilities, showing how a page that redirects based on a user-controlled parameter without validation can send users to arbitrary external sites. It demonstrates this on a local test page and on a public test site, and describes how such redirects can be used in phishing.
Published on medium.com
An open redirect happens when a website sends you to another website based on user input, but does not properly check where it is sending you. Attackers can misuse this to send users to malicious (bad) websites.
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 application redirects to a user-supplied URL without validating that it points to an allowed internal page.
Impact
An attacker could use the trusted website as a jump page to send users to malicious sites, which enables phishing.
What the attacker needed
A page that redirects based on a URL parameter; no validation of the redirect target
The fix
The fix is to check the requested destination against a list of allowed internal pages and ignore anything else.
How it was found
- Open the login page with a next parameter pointing to an internal page and observe the redirect.
- Change the next parameter to an external site and observe the redirect to that external site.
- Use Burp Suite to capture the request, send it to Repeater, modify the next parameter to an external domain, and confirm the redirect.
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 value from the link (like ?next=) and uses it to send you to another site without checking if that site is safe. An attacker can change that value to point to a malicious site, so the trusted website becomes a stepping stone to a scam page. This is dangerous because people trust the original site's link.
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.