Skip to content
Disclosed report CVE-2015-4519

Dragging and dropping image to <textbox> pastes final URL of image after redirects

Gervase Markham Follow

Originally disclosed on Mozilla

  • Fixed in 23 days
  • Paid in 24 days
  • Disclosed after 23 days
Text
https://fetch.spec.whatwg.org/#atomic-http-redirect-handling says:

"Throughout the platform, redirects (a response whose status is one of 301, 302, 303, 307, and 308) are not exposed to APIs. Exposing redirects might leak information not otherwise available through a cross-site scripting attack."

However, if you have:

<img src="http://foo.com/">

and that URL redirects to "http://bar.com?secret=12345", and then that loads the image, and then if you drag-drop the image to a textbox, the final URL is dropped (and therefore then available to script) rather than the initial URL.

This has been combined with cookie bombing to make a POC to steal Bugzilla secure attachments - see bug 1179241. I talked with Anne VK and he said that whatever we do about cookie bombing, this is also a bug.

Gerv

The original report as published on Mozilla's Bugzilla, by Gervase Markham. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 23 August 2015 as CVE-2015-4519.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.