Skip to content
Access control Disclosed report CVE-2016-2810

Content providers protected with signature-level permissions can be accessed by an application installed beforehand that defines the same permissions

Ken Okuyama Follow

Originally disclosed on Mozilla

  • Fixed in 19 days
  • Paid in 26 days
  • Disclosed after 19 days
Text
Created attachment 8694611
poc.apk

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Steps to reproduce:

1. Launch an emulator (or device) whose API level is 16( or lower)
2. Install attached poc app (poc.apk) with adb
3. Install firefox for android app with adb
4. Launch and use firefox for android app usually (add bookmarks, save passwords, e.t.c.)
5. Launch poc app and press some buttons on UI
   -> poc app tries to access content providers below.
      - org.mozilla.gecko.db.BrowserProvider
      - org.mozilla.gecko.db.PasswordsProvider
      - org.mozilla.gecko.db.FormHistoryProvider

Mechanism:
- In API level 20 or lower, a custom permission defined first is enabled (and duplicated name permissions are ignored).
  -> The poc app defines permissions, whose name are same as firefox defines, as normal level
     - org.mozilla.firefox.permissions.PASSWORD_PROVIDER
     - org.mozilla.firefox.permissions.BROWSER_PROVIDER
     - org.mozilla.firefox.permissions.FORMHISTORY_PROVIDER
- In API level 16 or lower, default value of exported attribute of content provider is true.
  -> Any app can access some content providers in firefox app on API level 16 or lower.


Actual results:

The poc app can read data handled by the content providers.

Note that the poc app only read data, but it can insert, update and delete data if implement functions.


Expected results:

The content providers deny access from app whose signature is different from Mozilla's one.

The original report as published on Mozilla's Bugzilla, by Ken Okuyama. 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 Data Providers. Mozilla made it public on 21 December 2015 as CVE-2016-2810.

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 Ken Okuyama

View all

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