Save hidden executable in users computer using 'Save Page As'
Categories
(Firefox :: File Handling, defect)
Tracking
()
People
(Reporter: qab, Unassigned)
References
Details
(Keywords: csectype-sop, reporter-external, sec-moderate)
Attachments
(2 files)
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Comment 1•10 years ago
|
||
| Reporter | ||
Comment 2•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Comment 3•10 years ago
|
||
| Reporter | ||
Comment 4•10 years ago
|
||
| Reporter | ||
Updated•10 years ago
|
| Reporter | ||
Comment 5•10 years ago
|
||
| Reporter | ||
Comment 6•10 years ago
|
||
| Reporter | ||
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
Updated•10 years ago
|
| Reporter | ||
Comment 9•10 years ago
|
||
Updated•10 years ago
|
| Reporter | ||
Comment 10•10 years ago
|
||
Updated•10 years ago
|
| Reporter | ||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
| Reporter | ||
Comment 13•9 years ago
|
||
| Reporter | ||
Comment 14•9 years ago
|
||
Comment 15•8 years ago
|
||
Updated•5 years ago
|
Comment 16•4 years ago
|
||
One aspect of this bug that's not explicitly mentioned in bug 332676 is the very first part of this summary: the ability to stuff malware executables or other unwanted files on a user's disk. I feel like that was mentioned long before this bug but I couldn't find an instance, so this one will do for now as a placeholder. People keep bringing this aspect up, though it's not all that clear how that hurts a user. The saved web page isn't going to be able to launch it, and it won't be incorporated into the saved page. Sure, it's there on the disk, but how likely is it that a user will be digging around in obscure sub-folders and decide launching a random executable is a good idea?
Over in bug 395752 comment 15 Gijs said
(In reply to Daniel Veditz [:dveditz] from comment #2)
<img src="file:///foo"> should be a broken image, we shouldn't be making
copies of things we don't let you link to in the first place!This is now fixed as a result of bug 1469916.
I may have obscured my meaning by using a file: url. If I have a page with an image like:
<img src=https://bugzilla.mozilla.org/attachment.cgi?id=280444>
My document will have a broken image because that attachment (from bug 395752) is not a valid image. But if I save the page "complete" the _files subfolder will still end up with comp1.html in it. When I do something similar with script or a stylesheet I get an error in the console about the mime type mismatch and nothing gets saved. That seems a better behavior.
But of course a malicious server could give malware.exe the right MIME type for the context and not worry about any parser errors. Not sure if that would still save the file but I assume so (I think that would be equivalent to the <img> case). Not sure if there's a generic way to track which loads throw an error and refuse to save those without retrying.
Comment 17•4 years ago
|
||
But of course a malicious server could give malware.exe the right MIME type for the context and not worry about any parser errors. Not sure if that would still save the file but I assume so
It does save a script if the MIME type isn't rejected, as seen in bug 1771741.
Updated•3 years ago
|
Updated•2 years ago
|
Description
•