Firefox 43 for Android : Clickjacking / CSRF attacks and Location Bar Spoofing (URL and SSL Spoofing)
Firefox for Android could be made to show one site's address in the location bar while displaying content from a different page, and an alert-driven redirect could move the user onto a tab opened earlier. An attacker could use this to trick a user into clicking a disguised login button and to make an insecure page look like a secure one.
Originally disclosed on Mozilla
- Fixed in 9 months
- Paid in 8 months
- Disclosed after 9 months
Created attachment 8684653
Screenshot of the vulnerability.png
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20151029151421
Steps to reproduce:
With Firefox 42 for Android , it's possible to make Clickjacking /CSRF attacks and possible URL and SSL Spoofing.
Step1 : go to https://www.alternativ-testing.fr/Research/Mozilla/android/android-Firefox42.0-Clickjacking-CSRF-URL-and-SSL%20Spoofing/testfs.html and click on the step1 link.
Step2 : click on the step2 Link.
step3 : an alert() JavaScript Function will be used for redirect the user on the tab opened by the first link (step1 link) and the location bar will appears like a secure webpage and show "https://mobile.twitter.com/session/new" but the visible content of the webpage is the content of "https://www.alternativ-testing.fr/Research/Mozilla/android/android-Firefox42.0-Clickjacking-CSRF-URL-and-SSL%20Spoofing/testfs.html" if your login and password for mobile.twitter.com is registred , by clicking on the button "ClickJack-twitter-login" you will be connected on your twitter account ( i will uploaded you a video and a screenshot for show you what this vulnerability is exactly)
Actual results:
An attacker can use this vulnerability for make clickjacking /CSRF attacks and possibly URL ans SSL Spoofing.
Expected results:
The visible content of the webpage is wrong and the real content of the URL showed is invisible and this can lead to ClickJacking and Cross-Site Request Forgery and also possible URL ans SSL Spoofing.
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 a flaw in how Firefox for Android handled a JavaScript alert and tab switching, letting the displayed location bar fall out of sync with the page content actually shown.
Impact
An attacker could carry out clickjacking and CSRF against a logged-in user and possibly spoof the URL and SSL indicators, though the report does not demonstrate a full account takeover.
What the attacker needed
Firefox 42 for Android; victim visits attacker page; victim clicks two links; saved credentials for shown site
How it was found
- Open the researcher's test page and click the first link, which opens a tab.
- Click the second link on the page.
- A JavaScript alert fires and redirects the user to the tab opened by the first link, where the location bar shows a secure address but the body shows the test page content.
- If the user has saved credentials for the shown site, clicking the disguised login button logs them into that account.
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 browser's address bar is meant to tell you which site you are really on. Here the bar could show a trusted address while the page body came from somewhere else, so a fake login button could sit under a real-looking address. Clickjacking means hiding or disguising a button so you press it without meaning to, and CSRF means your browser is tricked into sending a request you did not intend.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.