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.
Originally disclosed on Mozilla
- Fixed in 35 days
- Paid in 40 days
- Disclosed after 35 days
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.
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
- Download and extract the proof-of-concept extension archive.
- Load the extracted files as a temporary WebExtension in Firefox via the debugging page.
- 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.