Skip to content
Access control Advisory Advanced CVE-2026-79174

Incorrect authorization in Extensions (CVE-2026-79174)

A browser-side check granted an extension content-script process identity before confirming the script could run in the current document, so an error page could be used to forge that identity. A compromised renderer could then open an extension messaging channel while appearing to be a different, permitted extension.

章鱼哥@aipyaipy.com Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 40 days

VULNERABILITY DETAILS

RequestContentScript::InstructRenderProcessToInject() grants browser-side content-script process identity before confirming that an extension script can run in the current document. It checks the failed navigation target through WebContents::GetLastCommittedURL(), but does not reject an error document.

A compromised renderer can send a registered declarativeContent selector from chrome-error://chromewebdata/. If the failed target is covered by extension A's host permission, the browser records the error-document process as having run A's content script:

C++
if (!extension->permissions_data()->CanAccessPage(
        contents->GetLastCommittedURL(), tab_id, &error)) {
  return;
}
ScriptInjectionTracker::WillExecuteCode(...);  // identity granted here

No content script actually executes in the error document. The forged tracker state nevertheless passes ScriptInjectionTracker::DidProcessRunContentScriptFromExtension() when the same renderer opens an extension messaging channel as A. A target extension B whose externally_connectable.ids contains only A then receives runtime.onConnectExternal with sender.id == A.

Chromium's compromised-renderer threat model explicitly requires the browser to prevent a renderer from spoofing MessageSender.id, and identifies ContentScriptTracker as the mechanism used to authenticate that identity: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/security/compromised-renderers.md#messaging

This is an incomplete-fix variant of Chromium commit 2e4412b4632880203755104d93be611b12b3740a (issue 517153117). That fix added an IsErrorDocument() check to programmatic allFrames injection because the same tracker pollution bypassed process-isolation boundaries. The declarativeContent path was not covered.

SECURITY IMPACT

After compromising a web renderer, an attacker can impersonate an installed extension's content-script principal to another extension. This bypasses the browser validation behind externally_connectable.ids; a target that uses the source extension ID to authorize messages can disclose data or perform actions for the wrong principal.

The PoC uses two local extensions and makes the target display the accepted sender identity in a visible extension page. It does not claim that extension code executes in the error document, ordinary web-content reachability without a renderer compromise, or a complete sandbox escape.

The protected action is the browser accepting and delivering a content-script channel whose source ID is restricted by externally_connectable.ids. Any extension data or action placed behind that accepted channel would inherit the wrong browser-authenticated principal; the report does not depend on a target extension voluntarily trusting an unverified web-page field.

VERSION

  • Reproduced product build: Chromium 152.0.7923.0, local main/Dev-equivalent build, normal sandbox
  • Reproduced source commit: b9d7246399df323f397e1a136b93ef75f4268cb0
  • Operating System: macOS 26.5.2, arm64
  • Current Stable 151 branch-head 7922 checked (2026-07-17): d8c45d3713d6b4907ce9cde2c8fc4407f3cd88e3
  • Latest fetched main checked (2026-07-17): 792a0ccd2b48c4fcaac7aabde2eaf890e50e52d6

The vulnerable content_action.cc and PoC renderer target have identical Git blobs in the reproduced build, current Stable 151 branch, and latest main. Main contains a later messaging change, but the kContentScript validation still relies only on DidProcessRunContentScriptFromExtension(process, extension_id). The minimized no-log poc.patch passes git apply --cached --check against the reproduced checkout.

REPRODUCTION CASE

Attachments: poc.patch and poc.py.

poc.patch changes only renderer code and models a compromised renderer. It uses the error document's real LocalFrameHost; no browser authorization, extension service, or test code is modified.

MojoJS is insufficient because extensions::mojom::LocalFrameHost is an associated interface bound internally to the current RenderFrame; it is not exposed through the page's BrowserInterfaceBroker. The PoC must also send the messages over the real error document's frame route. The patch is process- and URL-guarded and contains no privileged-process changes or success logging. It is the dynamically validated renderer patch with only diagnostic LOG statements removed; the two LocalFrameHost calls, ordering, endpoint IDs, and message-port plumbing are unchanged.

  1. Generate the two extensions and start the local launcher:

    Bash
    python3 poc.py 8844 --output /tmp/ext0231
    
  2. Apply the renderer patch and build Chrome:

    Bash
    git apply poc.patch
    autoninja -C out/Release chrome
    
  3. Start the product with normal sandboxing and a fresh profile:

    Bash
    out/Release/Chromium.app/Contents/MacOS/Chromium \
      --user-data-dir=/tmp/ext0231-profile \
      --disable-extensions-except=/tmp/ext0231/source_extension,/tmp/ext0231/target_extension \
      --load-extension=/tmp/ext0231/source_extension,/tmp/ext0231/target_extension
    
  4. The source extension registers the declarativeContent rule and opens the launcher. The launcher navigates to an unused local port, producing a real chrome-error://chromewebdata/ document. Do not run a server on port 8766.

  5. The target extension opens a visible result page containing:

    Text
    RESULT=EXTENSION_IDENTITY_BYPASS
    senderId=okcefaocmdlaoolknaodpdhdbbmalmob
    senderUrl=chrome-error://chromewebdata/
    senderOrigin=null
    channelName=ext0231-error-document
    
  6. Reverse the patch, rebuild, and repeat with a fresh profile. The same error document appears, but the target result page is not opened. The underlying product A/B observed tracker/channel/listener counts of 0/0/0 for clean renderer and 1/1/1 for the renderer-only simulation.

ROOT CAUSE

The browser treats host permission for the failed target URL as proof that a content script can execute in the current RFH. It then writes process-scoped identity before checking the live LocalFrame, and messaging later consumes that historical process identity without binding it to the current document.

SUGGESTED FIX

Reject IsErrorDocument() before WillExecuteCode() in RequestContentScript::InstructRenderProcessToInject(), and move tracker mutation after all injection preconditions. Messaging should additionally bind a content-script endpoint to the current document rather than only historical process state.

CREDIT INFORMATION

Reporter credit: 章鱼哥@aipyaipy.com

The original report as published on the Chromium issue tracker, by 章鱼哥@aipyaipy.com. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 browser treated host permission for the failed navigation target as proof a content script could run, and recorded process-scoped identity before checking the live frame, which messaging later trusted without binding it to the current document.

Impact

After compromising a web renderer, an attacker could impersonate an installed extension's content-script principal to another extension, bypassing the browser validation behind externally_connectable.ids; the report does not claim extension code execution in the error document or a full sandbox escape.

What the attacker needed

Compromised web renderer; two installed extensions; target restricts senders by extension ID

The fix

The error document should be rejected before identity is granted, tracker mutation should happen only after all injection preconditions, and messaging should bind a content-script endpoint to the current document.

How it was found

  1. Generate the two extensions and start the local launcher.
  2. Apply the renderer patch and build Chrome.
  3. Start the browser with a fresh profile and only the two extensions loaded.
  4. The source extension registers the rule and the launcher navigates to an unused local port, producing an error document.
  5. The target extension opens a result page showing the accepted sender identity.
  6. Reverse the patch, rebuild and repeat; the target result page is not opened.

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 talk to each other, but the browser is meant to check who is calling. Here the browser wrote down that a certain extension had run in a page before it actually checked properly, and that note was later trusted. A malicious page could therefore pretend to be a different extension when sending a message.

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.

More by 章鱼哥@aipyaipy.com

View all

1 more disclosed report, best first.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.