Understanding Open Redirect Vulnerabilities: A Simple Discovery
The application accepted a user-controlled redirect parameter and sent the browser to any external URL without validation. An attacker could use the trusted domain to send users to a phishing site.
In the ever-evolving landscape of web security, Open Redirect vulnerabilities often slip under the radar, yet they pose significant risks to both users and web applications. This blog will delve into what Open Redirects are, how they can be exploited, and the best practices to prevent them.
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 redirect parameter was used directly in a redirect response without checking it against an allowlist.
Impact
Attackers could use the trusted domain to send users to phishing sites and steal credentials; the text does not say whether any defence limited this.
What the attacker needed
Victim clicks a crafted link
The fix
The redirect target should be checked against an allowlist of approved URLs, or relative paths should be used instead of full URLs.
How it was found
- Visit the target domain.
- Add a redirect parameter pointing to an external site.
- Load the URL and observe the redirect 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 from the address bar and sends you there without checking it. Because the link starts with the real site's name, people trust it, but it can lead to a fake login page that steals passwords.
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.