Host permissions with scheme wildcard (*://...) are not shown in permissions doorhangers
A Firefox bug caused host permissions using a wildcard scheme (like *://*/*) to be omitted from the installation permission doorhanger. An attacker could publish an extension requesting access to all sites and users would not see any warning about it.
- Fixed in 15 days
- Paid in 23 days
- Disclosed after 15 days
An extension can specify host permissions in manifest.json, e.g. "http://example.com/". There is a special scheme wildcard that matches "http" and "https". I.e. ["*://host/"] is equivalent to ["https://host/", "http://host/"].
Up until Firefox 57, the permission warning correctly showed up when the user tries to install an add-on with such host permissions that start with a wildcard scheme.
As of Firefox 58 (caused by the patch for bug 1398762), this is no longer the case.
STR:
1. Try to install an add-on that uses a host permission that starts with "*://".
For example:
"*://*/*" - https://addons.mozilla.org/en-US/firefox/addon/crxviewer/
"*://*.google.com/*" (and many other google domains) - https://addons.mozilla.org/en-US/firefox/addon/dont-track-me-google1/
2. Look at the doorhanger UI that is supposed to show the permission warnings.
Expected result:
- In the example with the *://*/* permission, I expected a warning about the fact that the extension runs on all sites.
- In the example with Google domains, I expected a bunch of warnings about the extension running on google.
Actual result:
- There is no permission warning for any host permission that starts with "*://".
This should be fixed and the patch should be uplifted to Firefox 58 before it reaches stable. Otherwise extensions can request the very powerful "*://*/*" permission and trick users into installing it without any warnings.
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 a regression in the permission-warning logic introduced by a patch for bug 1398762, which failed to handle host permissions whose scheme is a wildcard.
Impact
Extensions could request the powerful *://*/* permission and be installed without any warning, tricking users into granting access to all sites.
What the attacker needed
Firefox 58 (or affected version); User installs a malicious extension
The fix
The bug should be fixed and the patch uplifted to Firefox 58 before it reaches stable.
How it was found
- Install an add-on that requests a host permission starting with *://, such as *://*/* or *://*.google.com/*.
- Observe the doorhanger UI that should display permission warnings.
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.
When you install a browser extension, Firefox normally shows a warning listing what the extension can access, such as all websites. A bug meant that if the extension asked for a special wildcard permission covering both http and https, that warning was missing. So users could install a very powerful extension without being told it could read and change every site they visit.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.