inconsistent parsing of relative URLs starting with "///something" with a path-traversal "/../" part
Firefox normally asks for confirmation before sending credentials to a URL that uses basic authentication, but a crafted link whose href contains a relative URL with a path-traversal segment can skip that prompt. An attacker could therefore make a victim send basic-auth credentials to a site without the usual warning.
Originally disclosed on Mozilla
- Fixed in 8 days
- Paid in 13 days
- Disclosed after 8 days
Created attachment 9357973
p0c.html
Mozilla Firefox will ask for confirmation when accessing a url that does not require authentication using the basic auth scheme. By crafting a payload on the href property in the html link attackers can bypass the process of confirmation.
Step to reproduce :
1. Install web server
2. Create html file and save it to your web server path (example of html file is attached)
3. Open html file
Live demo : http://206.189.194.11/p0c.html
Poc video : https://drive.google.com/file/d/1NXP2MEikvXx0YLybfewHhe16FAXRmbal/view?usp=sharing
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
Impact
An attacker could cause Firefox to send basic-auth credentials to a URL without the confirmation prompt, though the report does not show what happens after the credentials are sent.
What the attacker needed
Victim uses Firefox; victim opens a crafted HTML page; target uses basic authentication
How it was found
- Set up a web server.
- Create an HTML file containing the crafted link and save it on the server.
- Open the HTML file in Firefox.
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.
Some websites ask your browser to send a username and password automatically (basic authentication). Firefox usually shows a warning before doing that, but the report says a specially formed link can make the browser skip the warning. That means your saved credentials could be sent to a site without you agreeing.
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.