Missing authorization in Extensions (CVE-2026-113302)
The pageCapture API checked only the main frame's origin before generating an MHTML archive, then serialised every subframe including chrome-extension:// iframes from other extensions. A malicious extension with the pageCapture permission could therefore read the live DOM of another extension's embedded iframe, bypassing the activeTab requirement.
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 security team.
Overview: The chrome.pageCapture.saveAsMHTML API validates capture permissions using only the main frame's origin. During MHTML generation, all subframes in the primary frame tree are serialized without individual origin checks. This potentially allows a malicious extension to extract the sensitive live DOM of other extensions' Web Accessible Resource (WAR) iframes.
Affected files:
chrome/browser/extensions/api/page_capture/page_capture_api.cccontent/browser/download/mhtml_generation_manager.ccextensions/common/permissions/permissions_data.cccontent/renderer/render_frame_impl.ccthird_party/blink/renderer/core/frame/frame_serializer.cc
Estimated timestamp from git blame: 2024-09-04
Overview
There is a potential information disclosure vulnerability in the chrome.pageCapture.saveAsMHTML API. The API validates permissions against the primary main frame's origin but subsequently serializes all frames in the frame tree. This allows an attacker extension to bypass cross-extension isolation boundaries and capture the live DOM of chrome-extension:// Out-of-Process Iframes (OOPIFs) embedded by other extensions, circumventing the usual activeTab permission requirement.
Technical Details
-
Incomplete Permission Validation: In
chrome/browser/extensions/api/page_capture/page_capture_api.cc, thePageCaptureSaveAsMHTMLFunction::CanCaptureCurrentPagemethod validates permissions by passing only the main frame's origin (web_contents.GetPrimaryMainFrame()->GetLastCommittedOrigin()) toPermissionsData::CanCaptureVisiblePage. If the main frame is a standard web URL (e.g.,https://), the check succeeds as long as the requesting extension has thepageCapturepermission. -
Unfiltered Frame Traversal: Once authorized, MHTML generation is triggered. In
content/browser/download/mhtml_generation_manager.cc(MHTMLGenerationManager::Job::initializeJob), the code iterates through everyFrameTreeNodein the primary frame tree. It indiscriminately queues all frames for serialization, regardless of their origin or scheme, meaningchrome-extension://WAR iframes are included. -
Bypass of Extension Isolation: Chrome's security model typically requires the
activeTabpermission to capture or interact withchrome-extension://origins. Because the API only checks the main frame's origin, thisactiveTabrequirement is completely bypassed for embedded extension iframes. -
Live DOM Disclosure: The renderer process serializes the live DOM of the requested frames via
FrameSerializer::SerializeFrame. Any sensitive data dynamically injected into the victim extension's subframe DOM (e.g., decrypted credentials in an autofill widget) is serialized into the MHTML archive and returned to the attacker.
Potential Attacker Steps
(Note: These are suggested/potential steps based on code analysis; our tooling agent does not yet have the ability to run code to provide a working proof of concept.)
- An attacker publishes an extension that requests the
pageCapturepermission (and optionallytabsto find target pages), but no host permissions oractiveTab. - The user installs a victim extension (e.g., a password manager) that legitimately embeds a Web Accessible Resource (WAR) iframe into certain web pages, populating it with sensitive DOM data.
- The user navigates to a target website where the victim's iframe is injected.
- The attacker extension invokes
chrome.pageCapture.saveAsMHTML({tabId: ...})for that tab. - The attacker receives the MHTML blob, parses it, and extracts the sensitive DOM content belonging to the victim extension's
chrome-extension://iframe.
Suggested Fix
The MHTML generation process should be updated to respect isolation boundaries. Potential fixes include:
- Modifying
MHTMLGenerationManager::Job::initializeJobto filter out restricted subframes (such aschrome-extension://schemes) during the frame traversal step, unless the capturing context explicitly possesses the requisite privileges (e.g.,activeTabor specific host permissions for that extension ID). - Alternatively, enforce per-frame origin checks during the initial
CanCaptureCurrentPagevalidation, ensuring that the calling extension is authorized to capture every frame currently present in theWebContentstree.
Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234
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
Likely the permission check was performed once against the top-level frame's origin, while the serialisation step walked the whole frame tree without per-frame origin checks.
Impact
A malicious extension could read sensitive data that another extension had placed in its embedded iframe, bypassing the activeTab requirement; the report is based on code analysis and no working proof of concept was run.
What the attacker needed
Attacker extension with pageCapture permission; victim extension embeds a WAR iframe; user visits a page containing that iframe
The fix
The MHTML generation should filter out restricted subframes such as chrome-extension:// unless the caller holds activeTab or host permissions for that extension, or the initial validation should check every frame's origin.
How it was found
- An attacker publishes an extension that requests the pageCapture permission but no host permissions or activeTab.
- The user installs a victim extension that embeds a Web Accessible Resource iframe containing sensitive DOM data.
- The user visits a page where the victim extension's iframe is present.
- The attacker extension calls the pageCapture saveAsMHTML API for that tab.
- The attacker parses the returned MHTML archive and extracts the victim extension's iframe DOM.
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 embed small web pages from their own package into normal sites; these are called Web Accessible Resource iframes. Chrome normally requires an extra permission called activeTab before one extension can touch another extension's content. Here the capture feature only checked the outer page's address, so a malicious extension could still pull the inner extension page's contents into a saved file.
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.