<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Mihai&#039;s Weblog</title>
	<atom:link href="http://mihaiv.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://mihaiv.wordpress.com</link>
	<description>Stuff I write</description>
	<lastBuildDate>Mon, 10 Aug 2009 11:32:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Security issues with sudo by martinpitt</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-46</link>
		<dc:creator>martinpitt</dc:creator>
		<pubDate>Mon, 20 Jul 2009 12:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-46</guid>
		<description>&gt; The real question behind sudo is how do you download/execute from
&gt; the web outside social engineering?

Exactly. We have already received complaints about not running downloaded .exe files by default (through wine). But I do my best to defend this behaviour. :-)</description>
		<content:encoded><![CDATA[<p>&gt; The real question behind sudo is how do you download/execute from<br />
&gt; the web outside social engineering?</p>
<p>Exactly. We have already received complaints about not running downloaded .exe files by default (through wine). But I do my best to defend this behaviour. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by martinpitt</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-45</link>
		<dc:creator>martinpitt</dc:creator>
		<pubDate>Mon, 20 Jul 2009 12:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-45</guid>
		<description>&gt; I find (1) too extreme. It is harder to use if made right but
&gt; that’s not even close no unusable.

Avoiding trojan horses will mean to disallow the user to execute _anything_ he can write to, i. e. anything from his home directory. That includes custom .desktop files, browser plugins, office documents (macros), scripts in ~/bin/, etc. This might be appropriate for some office environments, but most users would simply run away scared or disable this lockdown entirely.

&gt; A proper gksu screen (and gksu the only method to get root
&gt; access) with the proper information and clearly identifiable as
&gt; such (no user application should be able to imitate its screen
&gt; locking)

That would require a kernel mechanism like pressing SAK (SysRq+K), which cannot be intercepted by any user program. It&#039;s certainly not an unreasonable thing to do, but I guess there is a reason why Windows abandoned that approach again (usability). This would be pretty much the only defence against trojans pretending to be gksu, if all applications which ask you for passwords behave the same.

However, all the fuss about protecting root is pretty much moot on a desktop machine anyway. The really interesting data lives in your home account (credit card numbers, cookies, emails, documents, etc.). That&#039;s of course not an excuse to not protect the root user as far as possible, but nowaday&#039;s OSes have to balance usability against lockdown. As windows firewalls and UAC, and also restrictive SELinux by default, spectacularly demonstrated, users will just turn off security mechanisms entirely if they get too much in the way.

My personal opinion is that desktops are much better off by protecting themselves from running trojan horses in the first place, for the reasons above. I. e. nothing that you download from browsers, email clients, etc. must be executable by default, and the kernel/desktop enforce that you can only run files which are marked executable. The only exception known to me are office documents, but OO.o already warns you about embedded macros and needs you to confirm that you want to run them.</description>
		<content:encoded><![CDATA[<p>&gt; I find (1) too extreme. It is harder to use if made right but<br />
&gt; that’s not even close no unusable.</p>
<p>Avoiding trojan horses will mean to disallow the user to execute _anything_ he can write to, i. e. anything from his home directory. That includes custom .desktop files, browser plugins, office documents (macros), scripts in ~/bin/, etc. This might be appropriate for some office environments, but most users would simply run away scared or disable this lockdown entirely.</p>
<p>&gt; A proper gksu screen (and gksu the only method to get root<br />
&gt; access) with the proper information and clearly identifiable as<br />
&gt; such (no user application should be able to imitate its screen<br />
&gt; locking)</p>
<p>That would require a kernel mechanism like pressing SAK (SysRq+K), which cannot be intercepted by any user program. It&#8217;s certainly not an unreasonable thing to do, but I guess there is a reason why Windows abandoned that approach again (usability). This would be pretty much the only defence against trojans pretending to be gksu, if all applications which ask you for passwords behave the same.</p>
<p>However, all the fuss about protecting root is pretty much moot on a desktop machine anyway. The really interesting data lives in your home account (credit card numbers, cookies, emails, documents, etc.). That&#8217;s of course not an excuse to not protect the root user as far as possible, but nowaday&#8217;s OSes have to balance usability against lockdown. As windows firewalls and UAC, and also restrictive SELinux by default, spectacularly demonstrated, users will just turn off security mechanisms entirely if they get too much in the way.</p>
<p>My personal opinion is that desktops are much better off by protecting themselves from running trojan horses in the first place, for the reasons above. I. e. nothing that you download from browsers, email clients, etc. must be executable by default, and the kernel/desktop enforce that you can only run files which are marked executable. The only exception known to me are office documents, but OO.o already warns you about embedded macros and needs you to confirm that you want to run them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by Muharem Hrnjadovic</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-44</link>
		<dc:creator>Muharem Hrnjadovic</dc:creator>
		<pubDate>Mon, 20 Jul 2009 10:08:24 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-44</guid>
		<description>If you really think you&#039;re onto something here, why not be constructive for a change and file a bug here https://bugs.launchpad.net/ubuntu/+source/sudo ?

Oh, and while you&#039;re at it, please remember to mark it as a security vulnerability.

Thank you!</description>
		<content:encoded><![CDATA[<p>If you really think you&#8217;re onto something here, why not be constructive for a change and file a bug here <a href="https://bugs.launchpad.net/ubuntu/+source/sudo" rel="nofollow">https://bugs.launchpad.net/ubuntu/+source/sudo</a> ?</p>
<p>Oh, and while you&#8217;re at it, please remember to mark it as a security vulnerability.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by Siggi</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-43</link>
		<dc:creator>Siggi</dc:creator>
		<pubDate>Sun, 19 Jul 2009 23:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-43</guid>
		<description>You dont need a password to run su. Edit /etc/pam.d/su:
# Uncomment this if you want wheel members to be able to
# su without a password.
auth       sufficient pam_wheel.so trust

Uncomment the above line and then everyone in the wheel group can do su without a password.</description>
		<content:encoded><![CDATA[<p>You dont need a password to run su. Edit /etc/pam.d/su:<br />
# Uncomment this if you want wheel members to be able to<br />
# su without a password.<br />
auth       sufficient pam_wheel.so trust</p>
<p>Uncomment the above line and then everyone in the wheel group can do su without a password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by TGM</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-42</link>
		<dc:creator>TGM</dc:creator>
		<pubDate>Sun, 19 Jul 2009 21:52:26 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-42</guid>
		<description>I think it&#039;s worth a mention that the way Ubuntu handles the root account (disable root, sudo from named admin account) is a better way, it&#039;s moving the goalposts for attacks that try to bruteforce their way into root (&#039;root&#039; being the default account in Linux) by disabling root altogether, a bruteforce has to figure the username as well, making things harder.

The real question behind sudo is how do you download/execute from the web outside social engineering? Linux makes security breaches so much harder.</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s worth a mention that the way Ubuntu handles the root account (disable root, sudo from named admin account) is a better way, it&#8217;s moving the goalposts for attacks that try to bruteforce their way into root (&#8216;root&#8217; being the default account in Linux) by disabling root altogether, a bruteforce has to figure the username as well, making things harder.</p>
<p>The real question behind sudo is how do you download/execute from the web outside social engineering? Linux makes security breaches so much harder.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by unix user</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-41</link>
		<dc:creator>unix user</dc:creator>
		<pubDate>Sun, 19 Jul 2009 16:58:33 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-41</guid>
		<description>I think the problem is the default configuration of Ubuntu, the unprivileged user must not be able to run all commands as root with sudo neither must be able to do this without any password.
The problem is in the default config of /etc/sodoers file, sudo is great to delegate SOME command to SOME users such a shutdown or synaptic, is not designed to replace entirely root or su.
Just my 2 cents.</description>
		<content:encoded><![CDATA[<p>I think the problem is the default configuration of Ubuntu, the unprivileged user must not be able to run all commands as root with sudo neither must be able to do this without any password.<br />
The problem is in the default config of /etc/sodoers file, sudo is great to delegate SOME command to SOME users such a shutdown or synaptic, is not designed to replace entirely root or su.<br />
Just my 2 cents.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by Rambo Tribble</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-40</link>
		<dc:creator>Rambo Tribble</dc:creator>
		<pubDate>Sun, 19 Jul 2009 15:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-40</guid>
		<description>Thinking in browser-like terms, the possibility of substituting a local script for a system executable suggests the opportunity for password capture and forked processes, while still executing the command, as expected, in foreground. 

However, if you allow someone to copy files to your machine, you&#039;re toast any way you slice it. Sudo and most other security measures are reasonable within their context, which virtually always assumes a degree of physical security, either through lock and key or encryption. Hand your equipment to your attacker, or vice versa, and reasonable attempts at security are compromised by unreasonable conduct, not by intrinsic flaws to the security model.</description>
		<content:encoded><![CDATA[<p>Thinking in browser-like terms, the possibility of substituting a local script for a system executable suggests the opportunity for password capture and forked processes, while still executing the command, as expected, in foreground. </p>
<p>However, if you allow someone to copy files to your machine, you&#8217;re toast any way you slice it. Sudo and most other security measures are reasonable within their context, which virtually always assumes a degree of physical security, either through lock and key or encryption. Hand your equipment to your attacker, or vice versa, and reasonable attempts at security are compromised by unreasonable conduct, not by intrinsic flaws to the security model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by Mihai Varzaru</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-39</link>
		<dc:creator>Mihai Varzaru</dc:creator>
		<pubDate>Sun, 19 Jul 2009 15:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-39</guid>
		<description>martin: 
I find (1) too extreme. It is harder to use if made right but that&#039;s not even close no unusable. Think at someone who hardly does any administrative task anymore (you probably won&#039;t find many such linux users). The people that do need to protect their root account (like mixed server-desktop computers or the bank operations example above) might accept the extra inconvenience. A proper gksu screen (and gksu the only method to get root access) with the proper information and clearly identifiable as such (no user application should be able to imitate its screen locking) would be a reasonable solution for a somewhat educated (understands how a command looks) and willing to pay attention user. The user can also be helped to understand what he is running with warnings like &quot;non system application&quot; (easier to identify if the ~/home/bin application is run directly, harder if it is run indirectly (like a parameter, or a setting in a given as parameter config file); you can also do it with a fixed list: synaptic, users, etc).
Locking admin menus and making gksu special for the system (not taken from path) probably close the most common avenues of attack (common not because hackers think easier at them but because that&#039;s how users usually get to root; some users might never use the uncommon usage patterns).
The reasonably paying attention user described above should not be as easy to fool by the random gksu screen (he has the minimal education to realize that is unexpected and can look at what he is actually running).
I am confident that the other methods to elevate privilege to root can be reasonable (reasonable for the users willing to accept some limitations in their special situation) solved too.
(2) The problems I presented in the blog post involve almost no human stupidity. That is, not even a paying attention expert has a reasonable way to realize he is hacked. There is nothing in the normal flow of operations to warn him. There is no social engineering. He would have to do lots of other searches in his system to realize that something is fishy. If the computer clearly says that you are running /usr/sbin/synaptic after you clicked on it on the menu and you have no other available information to think otherwise you are not stupid if he actually runs the trojan code. That&#039;s a technical problem, the system does not do what it clearly advertises it does (the system is not yet hacked, just the current user account; for an already hacked system this discussion is irellevant).
Even for situations where social engineering is involved the system can help you notice easier possible problems (see my gksu example above or firefox phishing filter).

For all the users that don&#039;t fall in the special category above (I guess that most) I would apply point 4 of my post. The limited account does not help them and it is a frustrating inconvenience.</description>
		<content:encoded><![CDATA[<p>martin:<br />
I find (1) too extreme. It is harder to use if made right but that&#8217;s not even close no unusable. Think at someone who hardly does any administrative task anymore (you probably won&#8217;t find many such linux users). The people that do need to protect their root account (like mixed server-desktop computers or the bank operations example above) might accept the extra inconvenience. A proper gksu screen (and gksu the only method to get root access) with the proper information and clearly identifiable as such (no user application should be able to imitate its screen locking) would be a reasonable solution for a somewhat educated (understands how a command looks) and willing to pay attention user. The user can also be helped to understand what he is running with warnings like &#8220;non system application&#8221; (easier to identify if the ~/home/bin application is run directly, harder if it is run indirectly (like a parameter, or a setting in a given as parameter config file); you can also do it with a fixed list: synaptic, users, etc).<br />
Locking admin menus and making gksu special for the system (not taken from path) probably close the most common avenues of attack (common not because hackers think easier at them but because that&#8217;s how users usually get to root; some users might never use the uncommon usage patterns).<br />
The reasonably paying attention user described above should not be as easy to fool by the random gksu screen (he has the minimal education to realize that is unexpected and can look at what he is actually running).<br />
I am confident that the other methods to elevate privilege to root can be reasonable (reasonable for the users willing to accept some limitations in their special situation) solved too.<br />
(2) The problems I presented in the blog post involve almost no human stupidity. That is, not even a paying attention expert has a reasonable way to realize he is hacked. There is nothing in the normal flow of operations to warn him. There is no social engineering. He would have to do lots of other searches in his system to realize that something is fishy. If the computer clearly says that you are running /usr/sbin/synaptic after you clicked on it on the menu and you have no other available information to think otherwise you are not stupid if he actually runs the trojan code. That&#8217;s a technical problem, the system does not do what it clearly advertises it does (the system is not yet hacked, just the current user account; for an already hacked system this discussion is irellevant).<br />
Even for situations where social engineering is involved the system can help you notice easier possible problems (see my gksu example above or firefox phishing filter).</p>
<p>For all the users that don&#8217;t fall in the special category above (I guess that most) I would apply point 4 of my post. The limited account does not help them and it is a frustrating inconvenience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by martinpitt</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-38</link>
		<dc:creator>martinpitt</dc:creator>
		<pubDate>Sun, 19 Jul 2009 12:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-38</guid>
		<description>This is not at all related to sudo itself, or how it is configured. In nowaday&#039;s desktop world, if you manage to get a trojan into the user&#039;s account of an admin, you have practically owned the machine. You can do that by putting ~/bin/sudo, or you can install a daemon which ptrace()s all your processes repeatedly until you find one which has a sudo tty, or you can just bring up a dialog which looks like gksu and ask for some plausible reason for entering your password. Without a complete lockdown of the user session, trojan horses will always be possible.

The root problems here are:

 (1) Locking down an user account to a degree which makes trojan horses impossible would reduce the usefulness of a desktop machine to practically zero these days, and nobody would accept it.

 (2) There is no technical defense against human stupidity. Trojan horses are a _social_ and _educational_ problem, not a technical one!</description>
		<content:encoded><![CDATA[<p>This is not at all related to sudo itself, or how it is configured. In nowaday&#8217;s desktop world, if you manage to get a trojan into the user&#8217;s account of an admin, you have practically owned the machine. You can do that by putting ~/bin/sudo, or you can install a daemon which ptrace()s all your processes repeatedly until you find one which has a sudo tty, or you can just bring up a dialog which looks like gksu and ask for some plausible reason for entering your password. Without a complete lockdown of the user session, trojan horses will always be possible.</p>
<p>The root problems here are:</p>
<p> (1) Locking down an user account to a degree which makes trojan horses impossible would reduce the usefulness of a desktop machine to practically zero these days, and nobody would accept it.</p>
<p> (2) There is no technical defense against human stupidity. Trojan horses are a _social_ and _educational_ problem, not a technical one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Security issues with sudo by idaho</title>
		<link>http://mihaiv.wordpress.com/2009/07/17/security-issues-with-sudo/#comment-37</link>
		<dc:creator>idaho</dc:creator>
		<pubDate>Sun, 19 Jul 2009 09:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://mihaiv.wordpress.com/?p=17#comment-37</guid>
		<description>In Ubuntu 9.04, the AppArmor profile for Firefox is not enabled by default (e.g. see sudo apparmor_status). So the most likely vector against a desktop user would be a zero-day flaw in Firefox or maybe a malicious plugin. I don&#039;t want root compromised because I do my internet banking in a dedicated user account.</description>
		<content:encoded><![CDATA[<p>In Ubuntu 9.04, the AppArmor profile for Firefox is not enabled by default (e.g. see sudo apparmor_status). So the most likely vector against a desktop user would be a zero-day flaw in Firefox or maybe a malicious plugin. I don&#8217;t want root compromised because I do my internet banking in a dedicated user account.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
