Denial of Service vulnerability in Firefox for iOS (prompt/alert loop)
A web page that repeatedly shows a prompt and an alert could trap Firefox for iOS in an endless dialogue loop. The user could not open other pages or reach settings, and the problem survived quitting, restarting the app and restarting the phone, leaving uninstalling as the only way out.
Originally disclosed on Mozilla
- Fixed in 22 months
- Paid in 23 months
- Disclosed after 22 months
Created attachment 9350349 dos2.mov
Steps to reproduce:
With the Firefox application (latest available from Apple Store: 116.4 33723), access a URL containing the following code:
<html> <script> var correctCode = "*************"; var code = prompt("DOS form"); for (; code != correctCode;) { alert("DOS"); var code = prompt("DOS form"); } </script> </html>Actual results:
The form appears every time, without you being able to open another page or enter the settings, even if you quit and restart the application (attached is a reproduction of the bug). Restarting the phone doesn't solve the form popup either. The only "solution" is to uninstall the application and reinstall it, which means losing all the tabs that are already open.
Expected results:
The Firefox application should have processed the action without any disruptions and continued to function normally (including access to other tabs). To validate this expectation, the same action was tested on Safari, Chrome, and Opera browsers on iOS. In all these browsers, the action did not cause any disruption or crash. The browsers continued to function normally, demonstrating that this vulnerability is specific to the Firefox iOS application.
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 iOS app kept re-showing the page's prompt and alert dialogs without letting the user escape the loop or close the tab.
Impact
A malicious or careless page could make Firefox for iOS unusable until the app is reinstalled, which also loses the user's open tabs; the reporter confirmed Safari, Chrome and Opera on iOS were not affected.
What the attacker needed
Victim opens a crafted web page; Firefox for iOS installed
How it was found
- Open Firefox for iOS and load a page that runs a script looping prompt and alert dialogs.
- Observe that the dialog appears again each time it is dismissed.
- Try to open another page or reach settings and note that this is blocked.
- Quit and restart the app, then restart the phone, and see that the dialog still returns.
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 web pages can ask the browser to show small pop-up boxes, such as a message you must dismiss or a text field you must fill in. On Firefox for iOS, a page that keeps asking for these boxes in a loop locked the whole app, so the person could not browse or change settings. Other iOS browsers handled the same page without trouble.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.