Android Firefox address bar spoofing through invalid protocols
Android Firefox could be made to display a spoofed address bar showing a fake domain with an invalid protocol, while the page content was fully attacker-controlled. An attacker could trick a user into believing they were on a legitimate site such as Google or Apple.
Originally disclosed on Mozilla
- Fixed in 26 days
- Paid in 2 months
- Disclosed after 26 days
```text
Created attachment 9435878
PufIndex.html
In Android Firefox there is possibilities to Spoof using `🌐 Google.com://` `🌐 apple.com://`
When a user Click on link🔗 on page📄 it will replace the address bar to `Google.com://` ` apple.com:// ` and changes the entire screen with attacker-controlled content.
the spoofed URL address appear to be very similar to the original attackers this type of altered URLs to trick users into thinking they are on a legitimate website which allows an attacker to spoof the entire screen with attacker-controlled content.
`Steps to Reproduce:`
1. Open PufIndex.html
2. Click on Open Google Login link🔗
`Result:` Successfully Spoofed URL address to `Google.com://Login`
I have attached video Link 🌐🔗🔒 reproducing the attack. �
OS Info 📱:
Firefox Version: [134.0a1]
Operating System: [ Android 14 📱 ]
Thank you
```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 browser did not properly validate or normalise the protocol part of a URL before displaying it in the address bar, allowing an attacker-supplied string to appear as a trusted domain.
Impact
An attacker could spoof the address bar and full page content to make a phishing page appear to be a legitimate site, potentially tricking users into giving away credentials.
What the attacker needed
Android Firefox 134.0a1; victim clicks a crafted link
How it was found
- Open the provided HTML file in Android Firefox.
- Click the link labelled for Google login.
- Observe the address bar now shows the spoofed domain with an invalid protocol.
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 web browser shows the address bar so you can check which site you are on. In this bug, a specially crafted link made the address bar show a trusted name like Google.com followed by a strange '://' ending, while the actual page was controlled by the attacker. This could fool someone into entering details on a fake 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.