Skip to content
Access control Disclosed report Intermediate CVE-2023-5725

WebExtension can open Internal pages using windows.create

A malicious WebExtension could use the windows.create API to open privileged internal pages such as about:addons without restriction. This could let an extension display sensitive browser pages to the user, potentially misleading them or exposing internal functionality.

Shaheen Fazim Follow

Originally disclosed on Mozilla

  • Fixed in 35 days
  • Paid in 40 days
  • Disclosed after 35 days
Text
Created attachment 9346039
poc.zip

Using the browser.windows.open() function, a malicious WebExtension can open privileged pages like addons, about, etc., without any restrictions.

Steps to Reproduce:
1. Download and extract poc.zip to a folder
2. Open the Firefox browser and load the extracted files as WebExtention about:debugging#/runtime/this-firefox to begin testing.

The original report as published on Mozilla's Bugzilla, by Shaheen Fazim. 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 windows.create API did not check whether the requested URL was a privileged internal page before opening it.

What the attacker needed

Victim installs a malicious extension; extension uses windows.create API

How it was found

  1. Download and extract the proof-of-concept extension archive.
  2. Load the extracted files as a temporary WebExtension in Firefox via the debugging page.
  3. Use the extension to call the windows creation function and observe that a privileged internal page opens.

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.

A browser extension is a small add-on that can interact with the browser. Normally, extensions should not be able to open special internal pages that are meant only for the browser itself, because those pages can show sensitive settings or controls. This report says an extension could open those pages anyway, which breaks that rule.

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 Shaheen Fazim

View all

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