Bug Bounty Insights: 10 Key Findings - Open Redirect - Part 1
The application's SSO login and callback endpoints failed to validate the subdomain parameter, allowing an attacker to redirect users to arbitrary external domains. This could facilitate phishing attacks by sending users to malicious sites that mimic the legitimate login page.
medium.com
Published on medium.com
This article explores 10 security vulnerabilities found in a web application, called app.target.me for privacy. Each issue is described along with its impact and suggested fixes.
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 application failed to validate that the subdomain parameter contained only a valid subdomain of the target domain, allowing fully qualified domain names or path segments to be injected.
Impact
Attackers could redirect users to malicious websites that mimic the legitimate application, potentially leading to phishing attacks and capture of sensitive credentials.
What the attacker needed
Victim clicks a crafted link
The fix
The application should validate that the subdomain parameter only accepts valid subdomains within the target domain and reject fully qualified domain names or path segments.
How it was found
- Discover the SSO login endpoint and its subdomain parameter using reconnaissance tools.
- Supply a value that is not a valid subdomain, such as an external domain followed by a slash.
- Observe that the application redirects the user to the external domain instead of an error page.
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 a flaw where a website sends you to another site without checking if that site is safe. Here, the login system used a 'subdomain' value to decide where to send you after login, but it didn't verify that the value was actually a subdomain of the real site. An attacker could craft a link that looks like it belongs to the real site but actually sends you to a fake login page to steal your password.
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.