Skip to content
Info disclosure Disclosed report Beginner

Firefox Focus on Android: Clearing browsing data stops working from notification

After the user presses the 'Erase browsing history' notification, Firefox Focus closes the open pages but fails to clear cookies and local storage, and the erase button and other erase paths stop working until the app is force-stopped. An attacker who can get a victim to visit a page could keep tracking identifiers stored in the browser across erase attempts.

jesse.luoto Follow

Originally disclosed on Mozilla

  • Fixed in 46 days
  • Paid in 50 days
  • Disclosed after 46 days

Created attachment 9145294 index.html

Description

Firefox Focus can be set to a state where browser history cannot be erased before the app is force-stopped. This happens after pressing the "Erase browsing history" notification.

Steps to reproduce

  1. Open Firefox Focus
  2. Navigate to any webpage
  3. Without exiting the app, press the Firefox Focus notification that says "Erase browsing history"

Expected results

Firefox Focus should close the current webpages, erase browsing history and continue operating normally

Actual results

  • Firefox Focus closes the current webpages, but does not erase browsing history (cookies, locsalstorage)
  • Pressing the trash can icon ("erase" button) does not erase browsing history anymore
  • Pressing "Open and erase" from notification does not erase browsing history anymore
  • Closing the app via Android's "recent apps" does not erase browsing history anymore

Visit page from proof-on-concept to validate that browsing history is not erased.

Environment tested

  • Tested with following apps:

-- Firefox Focus version 8.2.0 (Build #340992215 🦎 75.0-20200403170909) -- Firefox Focus custom built from Github source code, master at dde1484c / tag v8.2.0 (Build #11 🦎 75.0-20200403170909)

  • Android 10, security patch 2020-03-01
  • Samsung Galaxy S10E

Proof of concept

Serve the attached file index.html from a web server, or visit the url https://output.jsbin.com/mejolejimo (contains the same javascript code).

Open the webpage with Firefox Focus and follow "steps to reproduce". The tracking IDs will not get cleared between erases if steps are followed.

The original report as published on Mozilla's Bugzilla, by jesse.luoto. 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 a state-handling bug in the erase flow triggered from the notification, which leaves the app in a state where subsequent erase actions no longer clear stored data.

Impact

Browsing data such as cookies and local storage may survive erase attempts, so tracking identifiers could persist until the app is force-stopped; the report does not claim any wider compromise.

What the attacker needed

Firefox Focus on Android; Victim visits a page that stores identifiers; User presses the erase notification

How it was found

  1. Open Firefox Focus and load any webpage.
  2. Without leaving the app, press the Firefox Focus notification that offers to erase browsing history.
  3. Observe that the pages close but cookies and local storage remain.
  4. Try the trash can erase button, the notification's open-and-erase option, and closing via recent apps; none clear the data.
  5. Load the proof-of-concept page to confirm the tracking identifiers persist.

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 private browser is meant to forget everything when you ask it to erase your history. Here, using a special erase button in the phone's notification bar left saved data behind, and afterwards the normal erase buttons also stopped working. That saved data can include tracking identifiers that websites use to recognise you again.

What is Info disclosure?

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

More from Mozilla

View all

The newest disclosed reports for this program.

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.