Incorrect authorization in Browser (CVE-2026-79141)
A file listed in an extension's sandbox.pages manifest entry could be requested with a percent-encoded dot in its path, so the manifest match failed while the file was still served. The document then loaded at the real extension origin with chrome.* API bindings, letting a web page read and write the extension's storage and read other extension pages.
Originally disclosed on Chrome VRP
- Fix shipped in 32 days
Report description
sandbox.pages path matching bypass allows web content to run in the extension origin
Bug location
Where do you want to report your vulnerability?
Chrome VRP – Report security issues affecting the Chrome browser. See program rules
Which URL (or repository) have you found the vulnerability in?
https://chromium.googlesource.com/chromium/src/
The problem
Please describe the technical details of the vulnerability
Vulnerability details
A resource listed in the manifest's sandbox.pages must load in an opaque origin with no extension API bindings. Requesting the same file with one dot percent-encoded, sbx/frame%2Ehtml instead of sbx/frame.html, makes the manifest match fail while the file is still served. The document commits at the real chrome-extension://<id> origin, is classified as a privileged extension context, and receives chrome.* bindings.
The sandbox decision is made on the still percent-encoded path, while the file is loaded from the percent-decoded path.
Reproduction case
- Create a folder with
manifest.jsonand a subfoldersbxcontainingframe.html,frame.jsandpanel.html. The manifest declares"sandbox": {"pages": ["sbx/frame.html"]}and"web_accessible_resources": [{"resources": ["sbx/*"], "matches": ["*://*/*"]}]. This is an ordinary extension: it renders untrusted content in a sandboxed page, which is the documented pattern, and keeps a normal page holding an account name and a sync token. - At
chrome://extensions, enable Developer mode, click Load unpacked, select that folder, copy the extension ID from its card. - Put
poc.htmlandserver.pyin a second folder and runpy -3 server.pyon Windows orpython3 server.pyon Linux. It serves 127.0.0.1:8399 and needs no elevation. - Open
http://127.0.0.1:8399/poc.html, paste the extension ID, click load.
Two iframes load the identical file. Left requests /sbx/frame.html, the path as written in sandbox.pages. Right requests /sbx/frame%2Ehtml.
Observed
Left frame, correctly sandboxed
arm: PLAIN
chrome.runtime : false
everything below requires the extension origin, correctly unavailable here
Right frame, same file, encoded dot
arm: ESCAPED (%2E)
chrome.runtime : true
chrome.runtime.id : hpcngfepkophmeocofcgbkafmdchagja
chrome.storage.local : {"attacker_wrote":"from ESCAPED"}
panel.html account : [email protected]
panel.html token : sync-token-9f3c8a1e
>>> extension page content read from web content <<<
Expected
Both frames behave like the left frame. The left frame is the control: same extension, same file, one character of difference.
Root cause
extension_protocols.cc#340 reads the path with request.url.GetPath(), canonicalized but still percent-encoded, and passes it at #345 to CSPInfo::GetResourceContentSecurityPolicy. That picks the sandbox CSP or the ordinary extension pages CSP based only on csp_info.cc#255, a manifest pattern match at sandboxed_page_info.cc#47. /sbx/frame%2Ehtml does not match sbx/frame.html, so the non-sandbox CSP is emitted and the document is never opaquified.
The file is still found because file_util.cc#505 calls UnescapeBinaryURLComponentSafe(url_path, /*fail_on_path_separators=*/true, ...), which rejects %2F but not %2E. The encoded form reaches the matcher at all because url_features.cc#45 kPreservePercentEncodedDotInPath is FEATURE_ENABLED_BY_DEFAULT, and web content may request it because web_accessible_resources matching is glob based, so sbx/* admits the encoded form exactly as it admits the plain path.
Four protections consult that same failed match, so they fail open together:
| Site | Effect |
|---|---|
| extension_protocols.cc#340 | sandbox CSP not emitted, origin not opaque |
| script_context.cc#178 | context classified privileged, bindings injected |
| script_context.cc#469 | "cannot be used within a sandboxed frame" never thrown |
| extensions_part.cc#380 | frame not routed into a cross process sandbox |
Both renderer sites already flag the comparison as wrong. script_context.cc#172 reads "This is checking the wrong thing", and #461 reads "this check is silly. The frame's document's security origin already tells us if it's sandboxed."
Suggested fix
Make the security decision on the string the file is loaded from. Narrowly, in GetSecurityPolicyForURL at extension_protocols.cc#340, derive the relative path with ExtensionURLToRelativeFilePath or apply the same unescaping instead of passing request.url.GetPath(), so IsSandboxedPage sees the decoded path. Since four call sites compare the same encoded path, the durable fix is one shared helper returning the decoded relative path, used by every consumer that matches manifest patterns.
Issue 40091584 already tracks that URL rendering code is used for converting between URLs and filenames. This is a security relevant instance of it.
Impact analysis
Attack scenario
The attacker owns a website and nothing else. No local access, no malicious extension of their own, no control over what the victim installed.
The victim has installed an honest extension that uses sandbox.pages for its intended purpose, running untrusted content in an opaque origin, and exposes that path through a globbed web_accessible_resources entry such as sbx/*.
The victim visits the attacker's page, which embeds chrome-extension://<id>/sbx/frame%2Ehtml in an iframe. Chrome serves the extension's sandboxed file but does not sandbox it, so the attacker gets a frame executing inside the victim extension's origin and reads and writes its chrome.storage. Extension IDs are fixed and public for Web Store extensions, so nothing has to be guessed, and the victim only has to visit a page.
Impact
A web page obtains a privileged extension context at the victim extension's origin. The PoC demonstrates three things, all measured:
chrome.runtime.id, confirming the real extension identity.- Writing to and then reading back
chrome.storage.local. Write access matters as much as read, because it lets the attacker persistently reconfigure the extension, and the change survives after the attacker's tab is closed. - Reading the DOM of another extension page,
panel.html, recovering an account name and a sync token. A web page embedding that page directly cannot read it, because it commits at the extension origin. From inside the escaped frame it is same origin and readable.
The reachable chrome.* surface is bounded by the victim extension's permissions, so the ceiling depends on which extension is installed.
sandbox.pages exists so an extension can run untrusted content safely, so this inverts the feature's purpose: the developers who followed the security guidance are the ones exposed.
The cause
What version of Chrome have you found the security issue in?
150.0.7871.182 Stable, installed, default settings. Also reproduced on a local ASan build of 152.0.7972.0
Is the security issue related to a crash?
No, it is not related to a crash.
Choose the type of vulnerability
Privilege Escalation
How would you like to be publicly acknowledged for your report?
M. Fauzan Wijaya (Gh05t666nero)
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 sandbox decision was made on the still percent-encoded URL path, while the file itself was loaded from the percent-decoded path, so the manifest pattern match failed and the sandbox CSP was never applied.
Impact
A web page could obtain a privileged extension context at the victim extension's origin, reading and persistently writing its storage and reading other extension pages, with the reachable API surface bounded by the victim extension's permissions.
What the attacker needed
Victim has an extension using sandbox.pages; that path is web-accessible via a glob; victim visits attacker's page; no local access needed
The fix
The security decision should be made on the decoded relative path the file is loaded from, ideally via one shared helper used by every consumer that matches manifest patterns.
How it was found
- Create an extension with a sandbox.pages entry and a globbed web_accessible_resources entry covering the sandbox folder.
- Load it unpacked via chrome://extensions in Developer mode and copy its extension ID.
- Run the provided local server and open the proof-of-concept page.
- Paste the extension ID and load, which embeds the sandboxed file twice, once plain and once with an encoded dot.
- Observe the encoded-dot frame has chrome.runtime available and can read another extension page.
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.
Extensions can mark certain pages as 'sandboxed', meaning they run isolated with no access to the extension's powers, so untrusted content can be shown safely. Here, asking for the same file with a slightly disguised path (a dot written as %2E) slipped past that check, so the page ran with full extension powers. Any website could then use it to read the victim's extension data.
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.