Skip to content
Info disclosure Write-up Advanced

kanytu/server.py Secret

A proof-of-concept shows that Firefox for Android could be tricked into loading a local file through a content provider and then reading it back, exposing files such as the browser profile configuration. An attacker who gets the victim to open a crafted page could read local files that the browser can access.

gist.github.com

Published on gist.github.com

Clone this repository at <script src="https://gist.github.com/kanytu/7fe0640c87b0f3e57bda51e784a7255d.js"></script> - Save kanytu/7fe0640c87b0f3e57bda51e784a7255d to your computer and use it in GitHub Desktop.

The author, on gist.github.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the Android Firefox build allowed web content to navigate to a fileprovider content URI and then read the response, without restricting which local files could be reached.

Impact

An attacker could read local files accessible to Firefox, such as the browser profile configuration, by getting the victim to open a crafted page.

What the attacker needed

Firefox for Android; victim opens a crafted page

How it was found

  1. Host the proof-of-concept server that serves a page with an iframe pointing to a local file.
  2. The page redirects the browser to an android-app intent that opens the local file as HTML.
  3. The loaded page runs script that requests the same location and shows the response.

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 write-up has not been written yet. The Original tab links to the source.

Firefox on Android can open links that point to files stored on the phone through a special internal address. This proof of concept shows a web page that makes the browser open one of its own private files and then sends the contents back to the page, so someone who visits a malicious page could have local files read.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.