Bypass external dialog permission using window.onblur in Android
An Android Firefox page could trigger an external intent (opening another app or browser) when the user pressed Back or opened a new tab, because the page used a window.onblur handler to fire the intent during that transition. This bypassed the dialog that normally asks the user to confirm opening an external app, letting the attacker redirect the victim to a malicious site.
Originally disclosed on Mozilla
- Fixed in 4 months
- Paid in 5 months
- Disclosed after 4 months
Created attachment 9460613
Pufindex.html
#Summery
in Android Firefox Attacker can Execute or redirect to malicious intent through User normal activity behaviour for example Tap or Click on Back button in Android or Tap on [ + ] New Tab
this leads bypassing dialog protection and execute malicious intent links
`Reproduce Video Unlisted:` https://www.youtube.com/shorts/TTLK-jjVT0A
#Steps to reproduce the problem
1. Open Attached PufIndex.html in Firefox Nightly Or Latest Firefox
2. Tap or Click on Back press (or) [ + ] new tab
`Results:` Successfully Executes Samsung Browser Loading Evil Site
#Firefox version, operating system version:
OS : Android 13
Firefox Version : 136.0a1
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 external-intent confirmation was tied to a user gesture check that a window.onblur handler could satisfy during a navigation or tab-switch transition, so the prompt was bypassed.
Impact
An attacker could redirect the victim to a malicious external site or app without the usual confirmation dialog, though this was demonstrated only on Android Firefox.
What the attacker needed
Android device; Firefox on Android; victim opens attacker page; victim presses Back or new tab
How it was found
- Open the attached HTML file in Firefox Nightly or the latest Firefox on Android.
- Tap the Back button or the new-tab (+) button.
- Observe that the external intent executes and a malicious site loads without the confirmation dialog.
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.
Android apps can ask the system to open a link in another app, such as a browser. Firefox normally shows a confirmation dialog before doing this, so a website cannot silently launch another app. Here the page watched for the moment the user left it (pressing Back or opening a new tab) and fired the external link at that exact moment, so the confirmation was skipped.
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.