Skip to content
Access control Disclosed report CVE-2015-0812

Addon permissions exposed to man-in-the-middle attacks

Armin Ebert Follow

Originally disclosed on Mozilla

  • Fixed in 11 days
  • Paid in 24 days
  • Disclosed after 11 days
Text
Created attachment 8557436
test case which installs a theme on page load

Firefox exposes Addon management permissions to a man in the middle, possibly
due to broken Public Key Pinning.

Extended browser access is granted to some Mozilla-owned domains, such as addon
management for addons.mozilla.org, wich is defined by the default_permissions
file, as I understood it.

But unlike the "UITour" permissions granted for www.mozilla.org, this API is
not restricted to the https:// protocol.

This should not be a security risk per se, since addons.mozilla.org provides
HSTS headers and is included in the static HPKP pinning list anyways, which
should render any attempt to tamper with plain HTTP traffic impossible.

Nevertheless sub-subdomains do not seem to enforce SSL here.

So a MITM can spoof the DNS entry for http://evil.addons.mozilla.org/ and from
there still act with the same privileges as https://addons.mozilla.org/.


Reproduction:

  - Set up a local web server together with a host entry like:
    127.0.0.1   evil.addons.mozilla.org

  - Perform operations, which require the access level of the AMO domain.
  - You can load the attached test case as a proof of concept, which installs a
    harmless theme.

  Observation:
  - http://localhost/install_theme.html
    -> Warning message: "This site (localhost) attempted to install a theme."

  - http://evil.addons.mozilla.org/install_theme.html
    -> The theme will be installed on page load without any user confirmation.

The original report as published on Mozilla's Bugzilla, by Armin Ebert. 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.

What is known

A medium-severity access control bug in Add-ons Manager. Mozilla made it public on 10 February 2015 as CVE-2015-0812.

About 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.

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

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 Armin Ebert

View all

18 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.