Open Redirect filter bypass through '\' character via URL parameter
An open redirect on a web application allowed bypassing a trusted-domain filter by placing a backslash before the trusted domain in the ref_url parameter. An attacker could craft a link that redirects victims to a phishing site while appearing to originate from a trusted domain.
Originally disclosed on HackerOne
- Triaged in 16 hours
- Fixed in 20 hours
- Disclosed after 20 hours
Hi, I hope I find you all safe and good regarding those hard times nowadays.
Summary:
Found an Open Redirect vulnerability on http://meta.myndr.net by bypassing the trusted domain filter using a '' character.
I was able to get the original redirection URL from the register button located at http://dashboard.myndr.net/auth/login
Original Redirection URL
http://meta.myndr.net/latest/meta-data/filter-id/add?ref_url=http://dashboard.myndr.net/auth/register?id=
Malicious URL
http://meta.myndr.net/latest/meta-data/filter-id/add/?ref_url=http://phishing.com\dashboard.myndr.net/../../../
The vulnerable URL parameter is ref_url
The trusted domain (or string) is dashboard.myndr.net
It can be bypassed only from its beginning! (between http:// and the string) and not after .net
Steps To Reproduce:
Navigate to : http://meta.myndr.net/latest/meta-data/filter-id/add/?ref_url=http://phishing.com\dashboard.myndr.net/../../../
You will be redirected to phising.com domain
PoC: attached to the report
Impact
- Phishing campaigns can be initiated using such a vulnerability
- It is an efficient way to bypass monitoring and email filters within an organization (the organization can check the "trust" level of each domains that they receive emails from)
Attachments
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the redirect validation checked whether the trusted domain appeared at the start of the URL string rather than parsing the URL and comparing the actual host, so a backslash before the trusted domain tricked the check.
Impact
An attacker could use the redirect for phishing campaigns and to bypass monitoring and email filters that rely on domain trust levels.
What the attacker needed
Victim clicks a crafted link
How it was found
- Find the original redirection URL from the register button on the login page.
- Craft a malicious URL using the ref_url parameter with a backslash before the trusted domain.
- Navigate to the malicious URL and observe redirection to the attacker's domain.
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 report 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 if that address belongs to an attacker. Here the site tried to allow only links to its own trusted domain, but the check could be fooled by putting a backslash character before the trusted name. That let an attacker make a link that looked safe but actually sent people to a fake 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.