Skip to content
Access control Disclosed report Intermediate

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.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 8 days
  • Paid in 23 days
  • Disclosed after 8 days
Text
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>
'''

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

  1. Launch the test page on Fenix.
  2. Tap any of the provided links.
  3. 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.

More by Muneaki Nishimura

View all

74 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.