Skip to content
Access control Advisory Intermediate CVE-2024-3175

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.

Derin Eryilmaz Follow

Originally disclosed on Chrome VRP

Bounty$5,000 Low View original
  • Fix shipped in 4 months

Steps to reproduce the problem:

  1. Install attached extension
  2. Open inspect element on any http/https website
  3. 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:

Devtools checks:

The source of the error is here:

https://source.chromium.org/chromium/chromium/src/+/main:out/fuchsia-Debug/gen/third_party/devtools-frontend/src/front_end/models/extensions/extensions.js;drc=e2089b5b87f0219bc59c9f965e3dc00d423594d0;l=2544

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

The original report as published on the Chromium issue tracker, by Derin Eryilmaz. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. Install the attached extension.
  2. Open the browser's inspect element on any http or https website.
  3. 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.

More by Derin Eryilmaz

View all

2 more disclosed reports, best first.

More from Google Chrome

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.