Safe Redirect Bypass
A URL containing a null byte bypasses the safe redirect mechanism and sends the victim directly to an attacker-controlled site. The reporter suggests the bypass may be related to a previous fix.
Originally disclosed on HackerOne
- Triaged in 47 hours
- Fixed in 10 days
- Paid in 14 days
- Disclosed after 44 days
Hello Team,
Summary:
The url below bypasses the safe redirect and redirects directly to the malicious website.
http://evil.org/%00
The reason for this may be the fix in the report #921286.
Steps:
Tweet the url below:
http://evil.org/%00
Thanks! @cyanpiny
Impact
The attacker can direct the victim directly, bypassing the safe redirect to the website.
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 did not correctly handle a null byte in the URL, allowing the check to be bypassed.
Impact
The attacker can direct the victim directly, bypassing the safe redirect to the website.
What the attacker needed
Victim clicks a link
How it was found
- Tweet the URL containing the null byte.
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.
A safe redirect is a feature that checks where a link is taking you before sending you there, to stop attackers from using a trusted site to send you to a bad one. Here, adding a special invisible character (a null byte) to the end of the address confused that check, so the site sent the visitor straight to the attacker's 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.