Skip to content
Access control Disclosed report Intermediate CVE-2018-5113

browser.identity.launchWebAuthFlow can open privileged pages

The browser.identity.launchWebAuthFlow API did not restrict which URL schemes could be opened, so an extension could launch privileged internal pages and local file URLs. An attacker could use this to open pages the extension should not be able to reach.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 8 days
  • Paid in 42 days
  • Disclosed after 8 days
Text
Created attachment 8936863
google-userinfo.zip

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce:

1. Unpack attached PoC addon
2. Go to about:debugging and temporarily load the unpacked addon
3. 'about:addons' is opened in new window


Actual results:

browser.identity.launchWebAuthFlow does not check whether the passed URL is http/s only. We can open privileged about: pages as well as file: urls.


Expected results:

It should only open http/s (maybe other) URI schemes.

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. 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 API validated neither the URL scheme nor the target page before opening it, allowing non-web schemes such as about: and file:.

Impact

An extension could open privileged internal pages and local files through the authentication flow, which may expose information or enable further attacks.

What the attacker needed

Ability to install or load an extension

How it was found

  1. Unpack the proof-of-concept add-on.
  2. Open the debugging page and temporarily load the unpacked add-on.
  3. Observe that an internal add-ons page opens in a new window.

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 extensions can ask the browser to open a web page for a sign-in flow. This report says the browser did not check that the address was a normal web address, so an extension could make it open internal browser pages or files on the computer instead.

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 Abdulrahman Alqabandi

View all

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