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.cccontent/browser/android/drop_data_android.ccui/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:
- Security Flag Ignored: In
content/browser/android/drop_data_android.cc,ToJavaDropDataunconditionally convertsdrop_data.file_contentsinto a Java byte array (jimage_bytes). It completely ignores thedrop_data.file_contents_image_accessibleflag. - URI Generation: The Java layer caches these bytes in
DropDataProviderImpland generates an Androidcontent://URI for them during drag initiation. - Hardcoded Origin: When the image is dropped, the
DragEventJni::ACTION_DROPhandler incontent/browser/web_contents/web_contents_view_android.cccreates a newDropDataobject and explicitly hardcodesdrop_data_->did_originate_from_renderer = false;(line 589). - Filter Bypass: Because
did_originate_from_rendereris false,RenderWidgetHostImpl::FilterDropDatafails to clear thefilenameslist. - Missing Access Check:
WebContentsViewAndroid::PerformDropCallbackfails to checkdrag_security_info_.IsImageAccessibleFromFrame(). Consequently,GrantFileAccessFromDropDataexplicitly grants the renderer process read access to thecontent://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.
- An attacker hosts an HTML page containing a cross-origin image (e.g.,
{{media:0}}) and a drop zone (<div id="dropzone"></div>). - The drop zone has an
ondropevent listener that readsevent.dataTransfer.files[0]using aFileReader(e.g.,readAsArrayBuffer()). - The user visits the page on Chrome for Android.
- The user is convinced to long-press the cross-origin image and drag it over to the drop zone, releasing it.
- The
ondrophandler receives aFilebacked by thecontent://URI. TheFileReadersuccessfully reads the cross-origin image bytes, which the attacker can then exfiltrate.
Suggested Fix
Multiple layers of defense should be patched to resolve this:
drop_data_android.cc(ToJavaDropData): Only populatejimage_bytes(and subsequentlyjimage_extensionandjimage_filename) ifdrop_data.file_contents_image_accessibleistrue.web_contents_view_android.cc(DragEventJni::ACTION_DROP): Do not hardcodedid_originate_from_renderer = false. Ensure the true origin of the drag is tracked (e.g., using state stored duringStartDragging) and restored here.web_contents_view_android.cc(PerformDropCallback): Enforce theIsImageAccessibleFromFrame()check before allowingfile_contentsor their correspondingcontent://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.
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
- An attacker hosts a page with a cross-origin image and a drop zone.
- The drop zone has an ondrop handler that reads the dropped file with a FileReader.
- The user visits the page on Chrome for Android.
- The user long-presses the cross-origin image and drags it to the drop zone, then releases it.
- 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.