Written by firexq the 19 Feb 09 at 01:31.
Category: Security.
Related project:
Nothing/Others.
Status: New
Rationale
A blogger recently described a method to use .desktop files to run malware on unsuspecting users. Whereas executables have popup instructions that alert the user, .desktop launchers run on click and can appear exactly like regular files. This is not a bug; developers describe it as "expected behavior".
andruk(Idea reviewer)
wrote on the 20 Feb 09 at 09:51
I voted for this, and I wish you all the luck in the world getting this voted up. But, I must point out that as far as I've read, both Gnome and KDE have marked this bug as "Won't Fix". Perhaps this idea getting lots of votes will be enough to change their minds. I hope it does.
This flaw isn't as bad as the WMF flaw in Windows, but it is close. The WMF flaw was a flaw *by design*, as is this.
To me, it should be very apparent if an icon (that's what the user understands it to be) is going to run anything. We are just as vulnerable to malware delivered via social-engineering as Windows and any other operating system out there. This decreases that attack surface, and should be implemented.
'+x' means something is executable by kernel. .desktop files are not "executable". They are data files.
Putting an executable flag on a .desktop file is simply wrong.
.desktop files could simply get a new miniicon overlayed - something like the windows shortcut arrow.
aysiu(Brainstorm moderator)
wrote on the 20 Feb 09 at 19:17
The steps required for this theoretical malware are still too much, and once you bring social engineering into the picture (i.e., user ignorance or stupidity), then the machine is basically going to be compromised anyway.
Aysiu, I agree that patching up "trick" malware isn't a task to dwell on. However, at present Ubuntu hides the .desktop ending of a file, meaning that it will appear indistinguishable from a normal file until clicked on. Stupid users will always go off running random code and the like, but even a non-stupid user could fall for this. Ubuntu does not provide him suffient information to make an informed decision.