Insufficient policy enforcement in Extensions (CVE-2026-10997)
A Chrome extension API that handles declarativeNetRequest redirect rules only blocked javascript: URLs, so a malicious extension could redirect a navigation to a file: URL and load a local file in the browser. The reporter also notes the redirect rules are fetched at runtime, so a static Web Store review of the extension bundle would not reveal them.
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
URL: src/extensions/browser/api/declarative_net_request/regex_rules_matcher.cc
Details
"source_file": "src/extensions/browser/api/declarative_net_request/regex_rules_matcher.cc", "type": "Insufficient URL Scheme Validation"
The CreateRegexSubstitutionRedirectAction function, which handles declarativeNetRequest redirect rules with regex substitutions, fails to properly validate the scheme of the generated redirect URL. While it correctly blocks javascript: URLs, it does not prevent redirects to other dangerous schemes, most notably file:. This allows a malicious extension with the declarativeNetRequest permission to craft a rule that redirects a user's navigation to a file: URL. This URL can open internal files ,
location :
std::optional<RequestAction>\nRegexRulesMatcher::CreateRegexSubstitutionRedirectAction(\n const RequestParams& params,\n const RegexRuleInfo& info) const {\n // ...\n GURL redirect_url(redirect_str);\n\n // Redirects to JavaScript urls are not allowed.\n // TODO(crbug.com/40111509): this results in counterintuitive behavior.\n if (redirect_url.SchemeIs(url::kJavaScriptScheme)) {\n return std::nullopt;\n }\n\n return CreateRedirectAction(params, *info.regex_rule->url_rule(),\n std::move(redirect_url));\n}
#impact:
i was able to downlaod html file and open it with file:/// direclty , also can use that vuln with other schema
Impact A malicious Chrome extension can download a file and then access it via a file:/// URL. This behavior allows extensions to open or read local files that should be protected by Chrome’s isolation of local file resources. An attacker can use any URL scheme and open nearly any file type on disk.
Important — dynamic rules.json The rules.json used in this attack is dynamic and generated at runtime after the extension is installed. It is not a static file shipped inside the extension package or stored in the extension folder. Because the redirect rules are created on-demand (after installation) and retrieved from the attacker's server, Web Store reviewers performing a static inspection of the extension bundle will not see these malicious rules. This means the attack cannot be detected simply by reviewing the extension package contents on the Web Store.
I’ve attached a video and PoC files.
Steps to reproduce
Download the PoC files.
Start attacker_server.py.
Load the malicious extension into Chrome.
The extension generates file.html (which contains an alert in the PoC) and automatically downloads it to Chrome’s default download folder.
The extension detects where file.html was saved and sends that path to the attacker server.
The attacker server generates a dynamic rules.json (not present in the extension bundle) and returns it to the extension.
The extension updates its declarativeNetRequest rules with that rules.json.
The extension automatically opens a window or popup with a host such as example.com. The dynamic rules.json redirects example.com to file:///path/file.html so the local file is loaded and executed in the browser context. Attack scenario Attack scenario
Result file:///path/file.html is loaded and executed in the browser, allowing execution of local-file content or access to local resources that should not be accessible. Because the redirect rules are created and deployed at runtime, the malicious behavior is not visible by inspecting the extension bundle or a static Web Store review.
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 redirect action only rejects the javascript: scheme instead of allow-listing safe schemes, so other schemes such as file: pass through.
Impact
A malicious extension could open or read local files that Chrome normally isolates, and the reporter says any URL scheme and nearly any file type could be used; the runtime-fetched rules also evade static Web Store review.
What the attacker needed
Victim installs a malicious extension; extension has declarativeNetRequest permission; attacker-controlled server
How it was found
- Download the proof-of-concept files and start the attacker server.
- Load the malicious extension into Chrome.
- The extension creates an HTML file and downloads it to the default download folder.
- The extension finds the saved path and sends it to the attacker server.
- The server returns a dynamically generated rules file, which the extension applies.
- The extension opens a page that the rule redirects to the local file URL, loading it in the browser.
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.
Browser extensions can ask Chrome to rewrite web addresses as they are loaded. This code checked for one dangerous kind of address but forgot others, so an extension could point the browser at a file stored on the user's own computer. That means content the browser normally keeps separate from websites could be opened.
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.