<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title><![CDATA[Focus on security of .desktop files]]></title>
    <link>http://brainstorm.ubuntu.com/item/18028/</link>
    <description><![CDATA[The .desktop files introduce a lot of problems - users can execute code without knowing what they do.<br />For example, they can receive the .desktop file on their email, and it's not required to give it execute permissions to run it.<br />In Gnome, there is a really big issue: .desktop files in ~/.local/share can overwrite the menu entry of some .desktop files in /usr/share/applications. For example, you have Synaptic. The run command specified in the .desktop file placed in /usr/share/applications is "gksu /usr/sbin/synaptic". A virus can copy this .desktop file to ~/.local/share/applications and change the run command to:<br />gksu  /usr/sbin/synaptic. So, the user thinks that he is starting synaptic, but he is executing bad code as root as well as synaptic. <br />In KDE (tested in 3.5.10) there is another issue, that is fixed in Gnome: KDE doesn't check for MIME type and extension conflicts, so the user might download a file with a .pdf extension (for example), the file can have a icon of a pdf file (since it's a .desktop file, custom icon is easy to put), and click on it, thinking that it's a pdf file. But the file might execute malicious code and also copy itself in the KDE/Gnome autostart directory, or made to be run with root privileges when starting something with gksu for example.<br /><br />If voting negative, please post a comment.<br />
<br />


<b>[76 votes] Solution #1: Basic security fixes</b>
<br />

<br />
<br />



<b>[135 votes] Solution #2: Require executable permissions for the .desktop files to be run</b>
<br />

<br />
<br />



<b>[-22 votes] Solution #3: Add an overlay icon</b>
<br />

<br />
<br />



]]></description>

    <language>en-us</language>
    <pubDate>Sat, 14 Feb 2009 08:23:58 +0000</pubDate>
    <lastBuildDate>Sun, 15 Feb 2009 13:48:34 +0000</lastBuildDate>
    <generator>QAPoll module</generator>
    <guid isPermaLink="true">http://brainstorm.ubuntu.com/idea/18028/</guid>
        <item>
  <title>Comment from cheesehead</title>
  <description><![CDATA[This seems like a security bug more than an idea.]]></description>
  <pubDate>Sun, 15 Feb 2009 13:26:05 +0000</pubDate>
</item>
        <item>
  <title>Comment from Ivo Georgiev</title>
  <description><![CDATA["2. MIME type/extension conflicts checking in KDE"<br />Yes, you are right - that's a security bug. But I'm sure the rest is a suggestion rather than a bug.]]></description>
  <pubDate>Sun, 15 Feb 2009 13:48:34 +0000</pubDate>
</item>
      </channel>
</rss>
