Insufficient data validation in Extensions (CVE-2024-3175)
The Chrome DevTools extension origin check compared the hostname exactly, so a Web Store URL with a trailing dot in the hostname bypassed the check. An attacker could host a malicious extension that, when installed, runs on a Web Store page with privileged APIs and triggers an alert.
Originally disclosed on Chrome VRP
- Fix shipped in 4 months
Steps to reproduce the problem:
- Install attached extension
- Open inspect element on any http/https website
- Observe alert in Web Store domain with access to privileged APIs
Problem Description:
The issue is simply that the chrome.devtools origin checks and the domains of Web Store pages with privileged methods don't line up.
Web Store URLs with privileges:
- https://chrome.google.com/webstore*
- https://chrome.google.com./webstore* (note trailing dot)
Devtools checks:
The source of the error is here:
if (parsedURL.protocol.startsWith("http") && parsedURL.hostname === "chrome.google.com" && parsedURL.pathname.startsWith("/webstore")) {
[reject access...]
Additional Comments:
Obviously, the check for the new Web Store domain (chromewebstore.google.com) should also be fixed.
**Chrome version: ** 116.0.0.0 **Channel: ** Beta
OS: Chrome OS
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 origin check used an exact hostname comparison instead of normalising the hostname, so a trailing dot in the hostname was not treated as the same domain.
Impact
An extension could run on a Web Store page with privileged APIs, potentially allowing actions that should be restricted to the store itself.
What the attacker needed
Victim installs a malicious extension; victim opens DevTools on a website
The fix
The check should normalise the hostname (for example, strip a trailing dot) and also include the new Web Store domain.
How it was found
- Install the attached extension.
- Open the browser's inspect element on any http or https website.
- Observe an alert on the Web Store domain with access to privileged APIs.
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.
Chrome extensions can ask for special permissions to interact with developer tools. The browser tries to block extensions from running on sensitive pages like the Chrome Web Store. This report shows that a small difference in the web address (a trailing dot) let an extension slip past that block and run on the store page.
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.