Skip to content
Info disclosure Disclosed report Intermediate

Security: Addons with no contentaccessible resources can be enumerated via differing error results

A malicious web page could detect whether a particular Firefox add-on was installed and enabled by loading a redirect to an add-on resource inside an iframe and observing whether the iframe's load event fired. Installed add-ons produced an error page and no load event, while absent or disabled add-ons produced a blank page and a load event.

Enrique Rando Follow

Originally disclosed on Mozilla

  • Fixed in 6.3 years
  • Paid in 28 days
  • Disclosed after 6.3 years
Text
Created attachment 8547534
poc.zip

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
Build ID: 20141126041045

Steps to reproduce:

Create a malicious webpage with an IFRAME whose SRC attribute loads another URL from the malicious server.

This new URL causes the server to respond with a "302 Found" HTTP code, redirecting to a "resource" or "chrome" URL coresponding to an addon component.


Actual results:

If the addon is installed and enabled, an error page will load in the IFRAME and the IFRAME load event WILL NOT fire.

If it is not installed or disabled, a blank page will be shown and the IFRAME load event WILL fire.

So, detecting whether the IFRAME load event fires or not enables the malicious page to find out if the addon is installed and enabled.

Please see attached file for a proof of concept. It contains 3 files:
* firefox_addons.htm -> the malicious page
* redirect.php -> Used to generate redirections
* screen_captures.pdf -> Some screen captures

To test it, just uncompress the archive in a web server directory and load "firefox_addons.php" in your Firefox browser through HTTP or HTTPS


Expected results:

There should be no difference (at least, as far as the JavaScript code cand "know") in the response depending of the status of the addon.

Resources for not installed, disabled or nonexistent addons should be treated as if they were non-contentaccessible.

The original report as published on Mozilla's Bugzilla, by Enrique Rando. 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 browser treated resources of installed add-ons differently from those of missing or disabled add-ons, so the iframe load event revealed the add-on's state.

Impact

A malicious page could fingerprint which add-ons a visitor had installed and enabled, which may aid targeted attacks.

What the attacker needed

Victim visits a malicious page; target add-on installed and enabled

How it was found

  1. Create a malicious page containing an iframe that points to a URL on the attacker's server.
  2. Make that URL respond with a redirect to an add-on resource URL.
  3. Load the page in Firefox and observe whether the iframe load event fires.
  4. Compare the result for installed, disabled and missing add-ons.

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.

Browser add-ons can have internal pages that ordinary websites are not supposed to reach. This report shows that a website could still learn whether a specific add-on was present by watching how an embedded frame behaved. That difference in behaviour leaked information about the visitor's browser setup.

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.