Missing authorization in API (CVE-2026-106208)
The chrome.cookies.getPartitionKey extension API lacks profile validation for frameId-only lookups, allowing a malicious extension to enumerate frameId values and access frames across all Chrome profiles, including incognito. Error messages embed the frame's URL, leaking cross-profile browsing history.
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.
Overview: A malicious extension can enumerate predictable frameId values in the chrome.cookies.getPartitionKey API to access frames across all Chrome profiles, including incognito. The API lacks profile validation for frameId-only lookups and embeds the frame's URL in permission error messages. This potentially leaks sensitive cross-profile browsing history.
Affected files:
chrome/browser/extensions/api/cookies/cookies_api.ccextensions/browser/extension_api_frame_id_map.cc
Estimated timestamp from git blame: 2024-11-07
Final Result / Impact
There is a potential vulnerability in the chrome.cookies.getPartitionKey extension API that allows a malicious extension to leak the URLs of active subframes across all Chrome profiles and incognito windows. By enumerating global frameId values and catching permission error messages, the extension can bypass profile isolation.
Vulnerability Summary
The initial logic and parameters of the frameId lookup are established context: ExtensionApiFrameIdMap acts as a browser-global singleton storing frame data across all active BrowserContext instances. Furthermore, for subframes, the frameId corresponds directly to the content::FrameTreeNodeId, which is a sequentially incrementing global integer.
When CookiesGetPartitionKeyFunction::Run processes a request containing only a frameId (without a tabId), it retrieves the RenderFrameHost globally using ExtensionApiFrameIdMap::Get()->GetRenderFrameHostByFrameId(frame_id).
Jumping to the core security failure: the frameId-only code path completely omits BrowserContext validation. It accepts a RenderFrameHost belonging to an entirely different profile or an incognito window. Following this, the API invokes CheckHostPermissions. If the extension lacks host permissions for the frame's top-level site or last committed URL, the API returns an error formatted as No host permissions for cookies at url: "<URL>". This embeds the cross-profile URL directly into the error string, returning it to the unauthorized extension.
Potential Reproduction Steps
Note: Our tooling agent does not yet have the ability to run code, so these are suggested steps to trigger the potential vulnerability.
- Install an extension with the
cookiespermission (and nohost_permissions) in a regular profile. - Open an incognito window and navigate to a site containing nested subframes.
- In the extension's background script, execute a loop to enumerate sequential
frameIdvalues:
for (let i = 1; i < 10000; i++) {
try {
await chrome.cookies.getPartitionKey({frameId: i});
} catch(e) {
if (e.message.includes('url:')) {
console.log(`Leaked URL for frame ${i}: ${e.message}`);
}
}
}
- Observe that the extension successfully extracts URLs belonging to the incognito session.
Suggested Fix
In CookiesGetPartitionKeyFunction::Run, after retrieving the RenderFrameHost via GetRenderFrameHostByFrameId, verify that the frame's BrowserContext matches the extension's BrowserContext (accounting for allowed incognito access). If the contexts do not match, return a generic invalid frameId error before any URL extraction or permission checking occurs.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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
Likely the frameId-only code path in CookiesGetPartitionKeyFunction::Run retrieves a RenderFrameHost globally without verifying that its BrowserContext matches the extension's BrowserContext, and then includes the frame's URL in permission error messages.
Impact
A malicious extension could leak the URLs of active subframes across all Chrome profiles and incognito windows, bypassing profile isolation.
What the attacker needed
Malicious extension with cookies permission; no host_permissions required; victim has incognito window open
The fix
The API should verify that the frame's BrowserContext matches the extension's BrowserContext (accounting for allowed incognito access) and return a generic invalid frameId error if they do not match.
How it was found
- Install an extension with the cookies permission and no host_permissions in a regular profile.
- Open an incognito window and navigate to a site containing nested subframes.
- In the extension's background script, loop over sequential frameId values and call chrome.cookies.getPartitionKey for each.
- Catch errors and check if the message contains 'url:' to extract leaked URLs.
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.
A browser extension can ask Chrome for information about a web page frame using a number called frameId. The API did not check whether that frame belonged to the same profile as the extension, so an extension could guess numbers and get error messages that included the URL of frames in other profiles, including incognito. This let the extension learn which sites were open in private browsing.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.