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

Incorrect authorization in Omnibox (CVE-2026-106364)

A logic flaw in the browser's consent handling for the Drive picker allowed a compromised untrusted renderer to omit an optional flow identifier in a protobuf message, bypassing the consent check. The attacker could then cause the browser to mint and hand over a read-only Google Drive OAuth token, and persist a fake consent preference across synced devices.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential confused-deputy logic bug in DrivePickerHostUI allows a compromised chrome-untrusted://drive-picker-host renderer to bypass user consent validation. By sending a forged protobuf message omitting the optional flow_id, the renderer can persistently update the user's consent state preference. This can trigger the browser to mint and disclose a highly privileged drive.readonly OAuth token to the untrusted renderer.

Affected files:

  • chrome/browser/ui/webui/drive_picker_host/drive_picker_host_ui.cc
  • chrome/browser/ui/webui/drive_picker_host/untrusted/drive_picker_host_untrusted_ui.cc

Estimated timestamp from git blame: 2026-07-08

Description and Root Cause

A potential logical security boundary bypass exists in the browser-process class DrivePickerHostUI. When handling the consent decision result from the ConsentKit flow, DrivePickerHostUI::HandlePrivacyFlowResult parses and evaluates an identity_consent::PrivacyFlowResult protobuf message supplied by the chrome-untrusted://drive-picker-host renderer process.

However, the safety guard checking the integrity of the flow identifier is implemented as follows in chrome/browser/ui/webui/drive_picker_host/drive_picker_host_ui.cc:

C++
void DrivePickerHostUI::HandlePrivacyFlowResult(
    const identity_consent::PrivacyFlowResult& result) {
  ...
  if (result.has_flow_id() &&
      result.flow_id().value() !=
          omnibox::kComposeboxDriveConsentFlowId.Get()) {
    DLOG(WARNING) << "Unexpected or missing flow_id";
    OnConsentKitError("Unexpected or missing flow_id");
    return;
  }

Because flow_id is defined as optional in components/contextual_search/consent_kit/proto/iframe_interface.proto, an attacker can craft a serialized protobuf message that omits the flow_id field. Under this condition, result.has_flow_id() evaluates to false, causing the check to short-circuit and entirely bypass the early return block.

If the forged protobuf also contains flow_completed (ConsentFlowCompleted), the browser process will trust the decision, permanently write contextual_search::kDriveConsentState as kConsent to profile preferences, and proceed to fetch and deliver a drive.readonly OAuth bearer token to the untrusted renderer.


Potential Attack Flow

Note: The following step-by-step sequence represents potential steps that an attacker would follow to trigger this vulnerability. Our automated security tooling agent does not currently have the ability to run code or compile a working proof of concept.

  1. Preconditions: The desktop field trial ComposeboxDriveContextMenuOptionDesktop is active (enabling omnibox::kComposeboxDriveContextMenuOption), the victim is logged into Chrome, and the attacker has achieved code execution inside the renderer process hosting chrome-untrusted://drive-picker-host.
  2. Trigger Dialog: The victim clicks the Google Drive context menu option inside the composebox. Since consent has not yet been given, the browser loads the DrivePickerHostUI which dynamically creates the untrusted iframe.
  3. Interface Linkage: DrivePickerHostUI::MaybeBindUntrustedBridge (drive_picker_host_ui.cc:129-148) binds the delegate relationship and initializes the Mojo communication channels.
  4. Forged IPC: The compromised renderer bypasses the user interaction phase and directly sends an IPC Mojo message PageHandler.OnConsentKitPrivacyFlowResult with a custom mojo_base.mojom.ProtoWrapper wrapping an identity_consent.PrivacyFlowResult structure.
  5. Bypassing Verification: The attacker omits the flow_id field but populates the flow_completed submessage structure.
  6. State Corruption: The browser process parses the message in DrivePickerHostUI::OnConsentKitPrivacyFlowResult, passes the check in HandlePrivacyFlowResult, and persistently writes contextual_search::kDriveConsentState to DriveConsentState::kConsent.
  7. Token Leaking: The browser invokes FetchTokenAndShowPicker (drive_picker_host_ui.cc:200-229), obtaining a valid OAuth bearer token (with scope https://www.googleapis.com/auth/drive.readonly via signin::OAuthConsumerId::kDrivePickerHost).
  8. Exfiltration: The browser passes the minted bearer token back to the untrusted renderer via untrusted_bridge_remote_->ShowDrivePicker(..., std::move(keys)) which crosses the IPC boundary. The attacker now possesses full read access to the victim's Google Drive files.

Security Impact

  • Credential Leakage: A compromised renderer is granted a highly sensitive, long-lived OAuth credential that exposes the user's entire Google Drive, in direct violation of Chrome's threat model guidelines (docs/webui/chrome_untrusted.md).
  • Syncable Preference Poisoning: The written consent state is a syncable profile preference. Once corrupted, the fake consent propagates across all of the user's synced devices, bypassing future consent checks entirely and facilitating recurring token leaks on other platforms.

Suggested Fix

Modify DrivePickerHostUI::HandlePrivacyFlowResult to strictly require the presence of flow_id and ensure that it matches the expected product flow identifier. Reject the message if flow_id is missing:

C++
  if (!result.has_flow_id() ||
      result.flow_id().value() !=
          omnibox::kComposeboxDriveConsentFlowId.Get()) {
    DLOG(WARNING) << "Unexpected or missing flow_id";
    OnConsentKitError("Unexpected or missing flow_id");
    return;
  }

Evaluated with Chrome root at commit: 94d9235ebe3b7276e5284f0dc5d55577ff949908


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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.

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

The consent validation used a conditional that only checked the flow identifier when it was present, so an omitted optional field short-circuited the guard and let a forged message through.

Impact

A compromised renderer could obtain a long-lived OAuth token giving read access to the victim's entire Google Drive, and the fake consent preference could sync to other devices, bypassing future consent checks; the report notes the attack requires prior renderer compromise and an active field trial.

What the attacker needed

Attacker has code execution in the untrusted renderer; victim is logged into Chrome; desktop field trial is active; victim clicks the Drive context menu option

The fix

The check should be changed to require the presence of flow_id and reject the message when it is missing.

How it was found

  1. Ensure the desktop field trial enabling the Drive context menu option is active and the victim is logged into Chrome.
  2. The victim clicks the Google Drive context menu option in the composebox, loading the DrivePickerHostUI and its untrusted iframe.
  3. The browser binds the untrusted bridge and initialises Mojo communication channels.
  4. The compromised renderer sends an IPC Mojo message with a forged PrivacyFlowResult that omits flow_id but includes flow_completed.
  5. The browser accepts the message, writes the consent state preference, and fetches an OAuth token.
  6. The browser passes the minted bearer token back to the untrusted renderer.

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.

Chrome separates web content into a less-trusted 'renderer' process and a more-trusted 'browser' process. The browser is supposed to check that a consent message really came from the expected flow before giving out a powerful Google Drive access token. Because a required check was skipped when a field was missing, a compromised renderer could trick the browser into handing over that token.

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.