Outgoing dataTransfer items are not filtered
Originally disclosed on Mozilla
- Fixed in 5 months
- Paid in 5 months
- Disclosed after 5 months
Outgoing dataTransfer items are not filtered
1. Open https://ebenda.org/2015/drag-drop/ in Firefox and Chrome
2. Drag and drop the displayed Firefox icon to Chrome
3. See the contents of your root directory/C: drive, the web page has read access to any file on your system
Windows convention seems to be to treat FileNameW, FileName and CF_HDROP items as (trusted) filenames (as done by Chromium in https://chromium.googlesource.com/chromium/src.git/+/master/ui/base/clipboard/clipboard_util_win.cc#179 ).
X11 convention seems to be (used by GNOME Files and by Chromium in https://chromium.googlesource.com/chromium/src.git/+/master/ui/base/dragdrop/os_exchange_data_provider_aurax11.cc#306 ) to treat file URIs in "text/uri-list" as (trusted) filenames.
Thus, dataTransfer items have to be filtered for (at least) these types and not passed through directly to the system.
Chromium does not use generic items but puts most generic items in a combined "chromium/x-web-custom-data" item. Additionally, it seems to not use "text/uri-list" at all for URIs but sets "text/x-moz-url" and "_NETSCAPE_URL". Even these values are filtered for file URIs (if not set by pages accessed via file:// themselves): https://chromium.googlesource.com/chromium/src.git/+/master/content/browser/renderer_host/render_view_host_impl.cc#1118 .
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity security bug in DOM: Copy & Paste and Drag & Drop. Mozilla made it public on 22 April 2016 as CVE-2016-5266.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.