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

Missing authorization in Core (CVE-2026-113263)

Chrome for Android's drag-and-drop implementation fails to enforce the image accessibility flag, allowing a cross-origin image's raw bytes to be read by JavaScript. An attacker could trick a user into dragging a cross-origin image onto a drop zone to bypass the Same-Origin Policy and exfiltrate the image data.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 7 months

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

Overview: Dragging and dropping a cross-origin image on Chrome for Android potentially leaks its raw bytes to the page, bypassing the Same-Origin Policy. The Android drag-and-drop implementation fails to respect the image_accessible security flag and improperly grants the renderer read access to a generated content:// URI containing the image data.

Affected files:

  • content/browser/web_contents/web_contents_view_android.cc
  • content/browser/android/drop_data_android.cc
  • ui/android/java/src/org/chromium/ui/dragdrop/DragAndDropDelegateImpl.java

Estimated timestamp from git blame: 2025-03-10

Description

There is a potential Same-Origin Policy (SOP) bypass in Chrome for Android's drag-and-drop implementation. An attacker can trick a user into dragging a cross-origin image and dropping it onto the same page, allowing the attacker's JavaScript to read the raw image bytes.

When a user drags an image, Blink's DataTransfer::DeclareAndWriteDragImage correctly evaluates ImageResourceContent::IsAccessAllowed(). For cross-origin images without CORS, this returns false, which is propagated via IPC as is_image_accessible = false in the DropData struct.

However, the Android browser process mishandles this in several ways:

  1. Security Flag Ignored: In content/browser/android/drop_data_android.cc, ToJavaDropData unconditionally converts drop_data.file_contents into a Java byte array (jimage_bytes). It completely ignores the drop_data.file_contents_image_accessible flag.
  2. URI Generation: The Java layer caches these bytes in DropDataProviderImpl and generates an Android content:// URI for them during drag initiation.
  3. Hardcoded Origin: When the image is dropped, the DragEventJni::ACTION_DROP handler in content/browser/web_contents/web_contents_view_android.cc creates a new DropData object and explicitly hardcodes drop_data_->did_originate_from_renderer = false; (line 589).
  4. Filter Bypass: Because did_originate_from_renderer is false, RenderWidgetHostImpl::FilterDropData fails to clear the filenames list.
  5. Missing Access Check: WebContentsViewAndroid::PerformDropCallback fails to check drag_security_info_.IsImageAccessibleFromFrame(). Consequently, GrantFileAccessFromDropData explicitly grants the renderer process read access to the content:// URI containing the cross-origin image bytes.

The attacker's Javascript receives the content:// URI disguised as a File object in the drop event and can read its contents using a standard FileReader, completely bypassing SOP.

Potential Reproduction Steps

Note: These are potential steps based on code analysis; our tooling agent does not currently have the capability to execute a working Proof of Concept.

  1. An attacker hosts an HTML page containing a cross-origin image (e.g., {{media:0}}) and a drop zone (<div id="dropzone"></div>).
  2. The drop zone has an ondrop event listener that reads event.dataTransfer.files[0] using a FileReader (e.g., readAsArrayBuffer()).
  3. The user visits the page on Chrome for Android.
  4. The user is convinced to long-press the cross-origin image and drag it over to the drop zone, releasing it.
  5. The ondrop handler receives a File backed by the content:// URI. The FileReader successfully reads the cross-origin image bytes, which the attacker can then exfiltrate.

Suggested Fix

Multiple layers of defense should be patched to resolve this:

  1. drop_data_android.cc (ToJavaDropData): Only populate jimage_bytes (and subsequently jimage_extension and jimage_filename) if drop_data.file_contents_image_accessible is true.
  2. web_contents_view_android.cc (DragEventJni::ACTION_DROP): Do not hardcode did_originate_from_renderer = false. Ensure the true origin of the drag is tracked (e.g., using state stored during StartDragging) and restored here.
  3. web_contents_view_android.cc (PerformDropCallback): Enforce the IsImageAccessibleFromFrame() check before allowing file_contents or their corresponding content:// URIs to be sent back to the renderer, aligning Android's security checks with the Aura (desktop) implementation (WebContentsViewAura::PrepareDropData).

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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

The Android drag-and-drop code ignores the image accessibility flag, hardcodes the drop as not originating from the renderer, and skips an access check, so it grants the renderer read access to a content URI containing cross-origin image bytes.

Impact

An attacker could bypass the Same-Origin Policy to read and exfiltrate cross-origin image bytes, but the report notes this is a potential issue based on code analysis without a working proof of concept.

What the attacker needed

Chrome for Android; victim drags and drops an image; attacker-controlled web page

The fix

The fix should enforce the image accessibility flag in multiple places: only populate image bytes if accessible, track the true drag origin instead of hardcoding it, and check image accessibility before granting file access.

How it was found

  1. An attacker hosts a page with a cross-origin image and a drop zone.
  2. The drop zone has an ondrop handler that reads the dropped file with a FileReader.
  3. The user visits the page on Chrome for Android.
  4. The user long-presses the cross-origin image and drags it to the drop zone, then releases it.
  5. The ondrop handler receives a File backed by a content URI, and the FileReader reads the cross-origin image bytes.

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.

Websites are normally not allowed to read data from other websites, a rule called the Same-Origin Policy. This report describes a bug in Chrome for Android where dragging an image from another site onto a page lets that page's JavaScript read the image's raw data, breaking that rule. The attacker just needs the victim to drag and drop an image.

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.