Fenix allows navigating from http: to file: URLs
Fenix (Firefox for Android) allowed a web page to open internal URLs such as file://, resource:// and about: through its custom fenix://open scheme. An attacker could make the browser navigate from an http page to these privileged pages, potentially exposing local files or internal browser pages.
Originally disclosed on Mozilla
- Fixed in 8 days
- Paid in 23 days
- Disclosed after 8 days
Similar to Bug 1356893 on Firefox for Android, fenix://open?url=file:///sdcard on Fenix allows navigation from http: to file: URLs (also possible to resource:// about: URLs etc.).
1) Launch http://csrf.jp/2020/fenix_file_bypass.html on Fenix
4) Tap any links then file:///sdcard/Download, resource://android and about:networking is shown in new tab
Note that the page in the 1) has the following links.
'''
<h1>For Fenix Beta</h1>
<a href=fenix-beta://open?url=file:///sdcard/Download>file:///sdcard/Download</a><br>
<a href=fenix-beta://open?url=resource://android>resource://android</a><br>
<a href=fenix-beta://open?url=about:networking>about:networking</a><br>
<h1>For Fenix Nightly</h1>
<a href=fenix-nightly://open?url=file:///sdcard/Download>file:///sdcard/Download</a><br>
<a href=fenix-nightly://open?url=resource://android>resource://android</a><br>
<a href=fenix-nightly://open?url=about:networking>about:networking</a><br>
'''
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 fenix://open handler did not validate or restrict the target URL scheme, allowing navigation to privileged schemes like file:, resource: and about:.
Impact
A malicious web page could cause the browser to open local files or internal browser pages, potentially leading to information disclosure.
What the attacker needed
Victim uses Fenix; victim taps a link on a malicious page
How it was found
- Launch the test page on Fenix.
- Tap any of the provided links.
- Observe that file:///sdcard/Download, resource://android or about:networking opens in a new tab.
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 page can contain a link that uses a special app-specific address (a custom scheme) to ask the Firefox for Android app to open another address. Here, the app did not check that the requested address was safe, so a malicious page could make the browser open local files or internal browser pages. This is dangerous because those pages are normally off-limits to websites.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.