Missing authorization in API (CVE-2026-113275)
The declarativeNetRequest API did not enforce the same response-header visibility restrictions as the legacy Web Request API, allowing a malicious extension to inject the sensitive DICE header into responses from accounts.google.com. This could let an attacker silently add their own Google account to the victim's Chrome profile.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team.
Overview: The declarativeNetRequest API fails to enforce response header visibility restrictions during modifyHeaders actions. A malicious extension could exploit this bypass to inject the sensitive X-Chrome-ID-Consistency-Response header into responses from accounts.google.com. This potentially allows an attacker to silently inject their Google account into the victim's Chrome profile.
Affected files:
extensions/browser/api/web_request/web_request_api_helpers.ccextensions/browser/api/declarative_net_request/indexed_rule.ccchrome/browser/extensions/api/chrome_extensions_api_client.ccextensions/browser/api/web_request/web_request_permissions.cc
Estimated timestamp from git blame: 2026-01-06
Description
In Chrome, the X-Chrome-ID-Consistency-Response (DICE) header is a sensitive response header used to manage account sign-ins and identity consistency. To prevent malicious extensions from reading or spoofing this header to hijack sessions or inject accounts, ChromeExtensionsAPIClient::ShouldHideResponseHeader() explicitly blocks extensions from accessing this header when the response originates from Google's Gaia servers (e.g., accounts.google.com).
However, there is a discrepancy in how header modifications are validated between the legacy Web Request API and the declarativeNetRequest (DNR) API. While the legacy path (CalculateOnHeadersReceivedDelta in extensions/browser/api/web_request/web_request_api_helpers.cc) correctly calls ShouldHideResponseHeader(), the DNR implementation (ModifyResponseHeadersForAction in the same file) does not.
When a DNR modifyHeaders rule is processed, ModifyResponseHeadersForAction blindly applies kSet and kAppend operations to the override_response_headers object without checking if the target header is restricted. Furthermore, DNR rule validation in indexed_rule.cc lacks a blocklist for response headers.
Potential Impact
Because the injected header originates from the WebRequestProxyingURLLoaderFactory intercepting a legitimate Gaia request, Chrome's internal sign-in components (like signin::URLLoaderThrottle and DiceResponseHandler) trust the header as if it was sent by Google.
An attacker can obtain a valid authorization_code for their own Google account and use a DNR rule to inject it. Chrome will then silently exchange this code for a refresh token and add the attacker's account to the victim's browser IdentityManager. This constitutes a persistent account injection/session fixation attack.
Potential Reproduction Steps
Note: These are suggested steps based on code analysis; our tooling agent does not currently have the capability to execute a working proof of concept.
- An attacker publishes a Manifest V3 extension requesting the
declarativeNetRequestpermission and host permissions for*://accounts.google.com/*. - The extension registers a static DNR rule that targets main-frame navigations (
"resourceTypes": ["main_frame"]) toaccounts.google.com. - The rule specifies a
modifyHeadersaction to set theX-Chrome-ID-Consistency-Responseheader to a crafted payload:action=SIGNIN,id=<attacker_id>,email=<attacker_email>,authuser=0,authorization_code=<attacker_code> - The attacker acquires a fresh, unused
authorization_codefor their account and populates it in the rule. - The victim installs the extension and later navigates to any
accounts.google.compage. - The DNR engine successfully injects the restricted DICE header.
signin::URLLoaderThrottleintercepts the response, extracts the header, and passes it toDiceResponseHandler.- Chrome exchanges the code for a refresh token and adds the attacker's account to the victim's Chrome profile.
Proposed Fix
- Enforce Restrictions in DNR Processing: Update
ModifyResponseHeadersForActioninextensions/browser/api/web_request/web_request_api_helpers.ccto consultExtensionsAPIClient::ShouldHideResponseHeader()(or a similar mechanism) before applyingkSetorkAppendoperations to response headers. If the header should be hidden, the modification action should be dropped. - Rule Validation (Optional but Recommended): Consider adding a response header blocklist to
ValidateHeadersForModificationinextensions/browser/api/declarative_net_request/indexed_rule.ccto prevent rules targeting known-sensitive headers from being successfully registered in the first place.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.
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
The DNR code path that applies response-header modifications did not call the same ShouldHideResponseHeader check used by the legacy Web Request API, and DNR rule validation had no blocklist for sensitive response headers.
Impact
A malicious extension could silently inject the attacker's Google account into the victim's Chrome profile, creating a persistent account injection or session fixation; the report notes the reproduction steps are suggested from code analysis and no working proof of concept was executed.
What the attacker needed
Victim installs a malicious extension; extension has declarativeNetRequest permission; extension has host access to accounts.google.com; attacker holds a valid authorization code
The fix
The DNR header-modification path should check ShouldHideResponseHeader before applying set or append operations, and rule validation should optionally block sensitive response headers.
How it was found
- The attacker publishes an extension with declarativeNetRequest permission and host access to accounts.google.com.
- The extension registers a static DNR rule for main-frame navigations to accounts.google.com.
- The rule uses modifyHeaders to set the DICE response header to a crafted value containing the attacker's authorization code.
- The victim installs the extension and later visits any accounts.google.com page.
- The DNR engine injects the restricted header, and Chrome's sign-in components process it.
- Chrome exchanges the code for a refresh token and adds the attacker's account to the victim's profile.
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 to change web responses before the browser shows them. Chrome has a rule that stops extensions from touching a special sign-in header from Google, but that rule was only applied in the older extension system, not the newer one. So a bad extension could slip in a fake sign-in header and make Chrome think the attacker's Google account belongs to the victim.
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.