Incoming "text/plain" dataTransfer items are potentially treated as files under GNU/Linux
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: rafael, Unassigned)
References
(Blocks 1 open bug, )
Details
(Keywords: reporter-external, sec-moderate)
Attachments
(1 file, 1 obsolete file)
Updated•10 years ago
|
Updated•10 years ago
|
Updated•9 years ago
|
Comment 2•9 years ago
|
||
| Reporter | ||
Comment 4•9 years ago
|
||
| Reporter | ||
Comment 5•9 years ago
|
||
| Reporter | ||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
| Reporter | ||
Comment 8•9 years ago
|
||
Updated•8 years ago
|
Comment 9•8 years ago
|
||
Comment 10•8 years ago
|
||
Comment 11•4 years ago
|
||
Martin, do you think the code being removed by the patch is still something we need to be able to handle? Apparently some file managers only supplied plain text when that code was added, but that may be out of date.
The issue here is that a user can drag text that contains a file uri from another browser (or another instance of Firefox), and we treat it as a real file even though it is only text. We should only be handling it as a file if it really is a dragged file.
(Note that the patch here only removes the special file handling for text/unicode but I think the same issue applies a few lines earlier for text/uri-list as well.)
Updated•3 years ago
|
Comment 12•3 years ago
|
||
Yes, the testcase still works. Neil, what's the issue here? Is it the text/plain -> application/x-moz-file conversion? And if we block that (and any other ones) what does prevent any site to create application/x-moz-file (or different file type) mime type directly?
Comment 13•3 years ago
|
||
The issue is that I can drag some plaintext that says 'file:///etc/passwd' from some other application and drop it on firefox and we will treat it as a file and the web site can read the file's contents. I shouldn't be able to do that.
A web site cannot assign application/x-moz-file at all; setData raises an exception if this is attempted. application/x-moz-file should be used only if there is really a file being dragged, as would be the case when dragging a real file.
Comment 14•3 years ago
|
||
In the process of migrating remaining bugs to the new severity system, the severity for this bug cannot be automatically determined. Please retriage this bug using the new severity system.
Updated•1 year ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Description
•