Skip to content
Info disclosure Disclosed report Intermediate

Favicon request in Fenix sends cookie and shares the value with private browsing mode

The Fenix browser's favicon loader sends cookies when fetching favicons and shares the cookie store with private browsing mode. This allows a website to set a tracking cookie via a favicon request and then recognise the user even in private browsing.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 6 days
  • Paid in 23 days
  • Disclosed after 6 days
Text
Created attachment 9168047
favicon_tracker.gif

Icon loader in Fenix enables cookie and shares the cookie store with private browsing mode (below).
https://github.com/mozilla-mobile/android-components/blob/16823b9010d74bf1a5642fd937725fe1ade3f5e5/components/browser/icons/src/main/java/mozilla/components/browser/icons/loader/HttpIconLoader.kt#L46

That allows website to track his/her users even when they use private browsing mode.

Here is the reproduction way (see attached image for the demo).
1) Launch http://csrf.jp/2020/favicon/
2) Set your name to form and submit. Then welcome.php is shown
3) welcome.php has <link rel="icon"> tag for tracker.php
4) Fenix tries to retrieve favicon to tracker.php and then tracking cookie is set by the response
5) Open private browsing mode
6) Launch http://csrf.jp/2020/favicon/welcome.php again.
   Then Fenix sends HTTP request to tracker.php with tracking cookie set at 4)

As far as I checked, Firefox PC and iOS doesn't send.
Fenix should do the same thing.

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 favicon loader in Fenix does not isolate cookies for private browsing and sends cookies with favicon requests.

What the attacker needed

Use Fenix browser; Visit a malicious website; Open private browsing mode

The fix

Fenix should not send cookies with favicon requests and should isolate the cookie store for private browsing, as Firefox PC and iOS do.

How it was found

  1. Launch the test page that sets a name via a form.
  2. Submit the form to reach welcome.php.
  3. welcome.php includes a link rel=icon tag pointing to tracker.php.
  4. Fenix fetches the favicon from tracker.php and the response sets a tracking cookie.
  5. Open private browsing mode.
  6. Visit welcome.php again; Fenix sends the tracking cookie to tracker.php.

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.

When you visit a website, your browser may automatically request a small icon (favicon) to show in the tab. This report found that the Fenix browser includes cookies in that request and uses the same cookie storage for private browsing. So a site can give you a tracking cookie through the favicon and later identify you even in private mode.

What is Info disclosure?

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

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.

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.