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

Insufficient data validation in DataTransfer (CVE-2026-7989)

A missing check for an already-active drag in Android Chrome's StartDragging handler lets a compromised renderer overwrite the browser's drag security state. This could allow the attacker to intercept cross-site drag data and gain read access to local files dropped into the browser.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 34 days

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: A lack of active-drag checks in WebContentsViewAndroid::StartDragging allows a compromised renderer to overwrite the browser's drag security state. By sending a malicious StartDragging IPC during an active legitimate drag, an attacker can bypass Site Isolation to intercept cross-site drag data and gain unauthorized read access to dropped local files.

Affected files:

  • content/browser/web_contents/web_contents_view_android.cc
  • content/browser/renderer_host/render_frame_host_impl.cc
  • content/browser/renderer_host/render_widget_host_impl.cc
  • content/browser/web_contents/web_contents_view_drag_security_info.cc

Estimated timestamp from git blame: 2026-01-23

Summary

There is a potential vulnerability in how Android Chrome handles concurrent drag-and-drop operations. Specifically, WebContentsViewAndroid::StartDragging lacks reentrancy guards or checks for an already-active drag. This allows a compromised renderer (e.g., a cross-site iframe) to spam the StartDragging IPC while a legitimate drag from the main frame is ongoing. Doing so overwrites the browser's internal security state, bypassing the IsValidDragTarget protection (introduced in crbug.com/59081) and allowing the attacker to intercept sensitive cross-site drag data and gain unauthorized file access.

Vulnerability Details

When a drag starts, WebContentsViewAndroid::StartDragging caches the initiating frame's SiteInstanceGroup ID into drag_security_info_ and calls the Android OS via native_view->StartDragAndDrop(). This cached ID is later used by IsValidDragTarget to ensure that data dragged from one origin cannot be dropped into a cross-origin frame on the same page.

However, because there are no browser-side state checks preventing concurrent StartDragging IPCs, a compromised renderer can send its own StartDragging IPC immediately after a legitimate drag begins. When the browser processes this malicious IPC:

  1. It unconditionally overwrites current_source_rwh_for_drag_ with the attacker's RenderWidgetHostImpl.
  2. It calls drag_security_info_.OnDragInitiated, which unconditionally overwrites the cached site_instance_group_id_ with the attacker's ID, completely poisoning the security state.
  3. It attempts to call native_view->StartDragAndDrop() a second time. Because the OS already has an active drag, this returns false.

Crucially, the failure path for StartDragAndDrop calls OnSystemDragEnded, which notifies the renderer but does not reset drag_security_info_. The secure state reset only happens in OnDragEnded, which only fires when the OS successfully finishes a drag.

Consequently, the browser is left with an active legitimate drag, but its security tracker is locked to the attacker's ID. When the user drops the item onto the attacker's iframe, IsValidDragTarget compares the target's ID against the poisoned cached ID. The check passes, and the browser dispatches the drop to the attacker.

Impact

  • Site Isolation Bypass: A compromised renderer can exfiltrate sensitive data (text, URLs, images) dragged from other origins within the same WebContents.
  • Unauthorized File Access / Partial Sandbox Escape: If the user drags a local file into the browser, RenderWidgetHostImpl::DragTargetDrop calls GrantFileAccessFromDropData. Because the drop was erroneously validated, the browser explicitly grants the attacker's renderer process read access to the local file via ChildProcessSecurityPolicyImpl::GrantReadFile.
  • Denial of Service: Overwriting current_source_rwh_for_drag_ prevents the victim frame from receiving the DragSourceEndedAt event, leaving the frame permanently suppressing input.

Suggested Exploitation Steps

(Note: These are potential steps based on code analysis; our tooling agent cannot execute working exploits.)

  1. Navigate to https://victim.com, which embeds a cross-site iframe from https://attacker.com.
  2. Assume the attacker.com renderer process is compromised and can send arbitrary Mojo IPCs.
  3. The user starts a physical drag operation on a sensitive element in the victim.com main frame.
  4. The browser process begins the drag and caches the SiteInstanceGroup ID for victim.com.
  5. The compromised attacker.com renderer immediately sends a blink::mojom::LocalFrameHost::StartDragging IPC to the browser.
  6. The browser unconditionally processes the IPC, overwriting the cached SiteInstanceGroup ID with attacker.com's ID. The subsequent OS drag call fails, but the poisoned state persists.
  7. The user drops the item onto the attacker.com iframe.
  8. The browser's IsValidDragTarget check passes because the state now matches the attacker's ID.
  9. The attacker.com renderer receives the victim's drag data and any associated file access grants.

Suggested Fix

  1. Add Active Drag Checks: In WebContentsViewAndroid::StartDragging (and potentially other platform implementations), check if a drag is already active before processing a new StartDragging request. If an OS drag is in progress, reject the incoming IPC or ignore it.
  2. Robust Cleanup: Ensure that if native_view->StartDragAndDrop() fails, the resulting cleanup (e.g., OnSystemDragEnded) properly resets drag_security_info_ by calling drag_security_info_.OnDragEnded() to clear the poisoned state.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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.

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 StartDragging handler does not check whether a drag is already in progress, so a second IPC overwrites the cached security state and the failure path does not reset it.

Impact

A compromised renderer could bypass Site Isolation to read cross-site drag data and, if a local file is dragged, gain read access to that file; it could also cause a denial of service by leaving a frame suppressing input.

What the attacker needed

Android Chrome; victim site embeds attacker iframe; attacker renderer is compromised; user performs a drag and drop

The fix

The handler should reject a new StartDragging request while a drag is already active, and the failure path should reset the drag security state.

How it was found

  1. Navigate to a victim site that embeds a cross-site iframe from the attacker.
  2. Assume the attacker's renderer is compromised and can send arbitrary IPC messages.
  3. The user starts a physical drag on a sensitive element in the victim's main frame.
  4. The browser caches the victim's SiteInstanceGroup ID for the drag.
  5. The compromised attacker renderer sends a StartDragging IPC, overwriting the cached ID.
  6. The user drops the item onto the attacker's iframe, and the check passes because the state matches the attacker's ID.

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.

When you drag something on a web page, the browser remembers which website the drag started from so it can stop another website from stealing the data. This report says that on Android, a malicious website could trick the browser into forgetting the original website and thinking the drag came from the attacker instead. That would let the attacker read what you dragged, and possibly open files you dragged into the browser.

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.