<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: suid shell scripts &#8211; setting &#8220;the SUID bit&#8221;</title>
	<atom:link href="http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/feed/" rel="self" type="application/rss+xml" />
	<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/</link>
	<description>UNIX / Linux Shell Hints and Tips&#160;&#160;&#160;&#160;&#160;&#160;(a http://steve-parker.org/sh/sh.shtml subproject)</description>
	<lastBuildDate>Sun, 31 Mar 2013 18:54:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: unixshell</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5505</link>
		<dc:creator><![CDATA[unixshell]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 00:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5505</guid>
		<description><![CDATA[SUID is dangerous because any user can run it with &quot;root&quot; privileges. Any program granted SUID privileges must be thoroughly inspected and totally trusted.

Shell scripts - being readable as well as executable, and particularly being in plain-text also - are especially vulnerable to attack, as an attacker can see how their input will be treated before even attempting to exploit the script. Anything they get the script to run, will be run with superuser privileges.]]></description>
		<content:encoded><![CDATA[<p>SUID is dangerous because any user can run it with &#8220;root&#8221; privileges. Any program granted SUID privileges must be thoroughly inspected and totally trusted.</p>
<p>Shell scripts &#8211; being readable as well as executable, and particularly being in plain-text also &#8211; are especially vulnerable to attack, as an attacker can see how their input will be treated before even attempting to exploit the script. Anything they get the script to run, will be run with superuser privileges.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekevoo</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5504</link>
		<dc:creator><![CDATA[Ekevoo]]></dc:creator>
		<pubDate>Mon, 10 Oct 2011 00:38:23 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5504</guid>
		<description><![CDATA[So, how is a SUID script dangerous? You forgot to tell!]]></description>
		<content:encoded><![CDATA[<p>So, how is a SUID script dangerous? You forgot to tell!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve Parker</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5384</link>
		<dc:creator><![CDATA[Steve Parker]]></dc:creator>
		<pubDate>Tue, 04 Jan 2011 16:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5384</guid>
		<description><![CDATA[At the risk of feeding a troll, the previous comment was not advocating security-through-obscurity as an end in itself, which was clear from the original blog post, and the faqs.org article which it linked. As you presumably know, the reason for ping being suid is because parts of its functionality require root privileges on most implementations of *nix. The examples on the faqs.org page assume that the attacker knows the next characters after #! in order to exploit them - if /bin/sh then use -i, for example.

But enough troll-feeding for now.]]></description>
		<content:encoded><![CDATA[<p>At the risk of feeding a troll, the previous comment was not advocating security-through-obscurity as an end in itself, which was clear from the original blog post, and the faqs.org article which it linked. As you presumably know, the reason for ping being suid is because parts of its functionality require root privileges on most implementations of *nix. The examples on the faqs.org page assume that the attacker knows the next characters after #! in order to exploit them &#8211; if /bin/sh then use -i, for example.</p>
<p>But enough troll-feeding for now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name Required</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5383</link>
		<dc:creator><![CDATA[Name Required]]></dc:creator>
		<pubDate>Tue, 04 Jan 2011 15:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5383</guid>
		<description><![CDATA[If security-through-obscurity is that valuable, why isn&#039;t your system&#039;s /bin/ping set unreadable?  (It&#039;s clearly world readable in your listings in the article.)  You&#039;re doing a disservice to readers by confusing this issue: it is not the readability of shell scripts that makes them unsuitable for SUID.  Re-read the article &lt;a href=&quot;http://www.faqs.org/faqs/unix-faq/faq/part4/section-7.html&quot; rel=&quot;nofollow&quot;&gt;linked in the first sentence&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>If security-through-obscurity is that valuable, why isn&#8217;t your system&#8217;s /bin/ping set unreadable?  (It&#8217;s clearly world readable in your listings in the article.)  You&#8217;re doing a disservice to readers by confusing this issue: it is not the readability of shell scripts that makes them unsuitable for SUID.  Re-read the article <a href="http://www.faqs.org/faqs/unix-faq/faq/part4/section-7.html" rel="nofollow">linked in the first sentence</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 2010 in review &#171; *nix Shell</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5379</link>
		<dc:creator><![CDATA[2010 in review &#171; *nix Shell]]></dc:creator>
		<pubDate>Sun, 02 Jan 2011 12:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5379</guid>
		<description><![CDATA[[...] suid shell scripts &#8211; setting &#8220;the SUID bit&#8221; April 20075 comments  4 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] suid shell scripts &#8211; setting &#8220;the SUID bit&#8221; April 20075 comments  4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unixshell</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5300</link>
		<dc:creator><![CDATA[unixshell]]></dc:creator>
		<pubDate>Mon, 19 Apr 2010 11:30:18 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5300</guid>
		<description><![CDATA[SUID anything can be dangerous - scripts can be a problem in that they must be readable by the user who executes them, so any small bug in the script can be exploited - eg, if the script just does &quot;echo hello&quot;, then a non-priviliged user could alias &quot;echo&quot; to &quot;rm -rf /&quot; and run the script.

A SUID C program is safer in that the binary can be set with execute permissions but not read permissions, so you can run it but not disassemble it. Of course, the C program may run the system() system call and be exploitable in many other ways too. It would be less easy for a regular user to find out what to exploit, though. Any use of SUID should be avoided where possible.

Finally - a C-illiterate, Unix-illiterate programmer would write very poor C code for Unix. A new driver would be very likely to crash a Ferrari, but that does not make Ferraris inherently unsafe.]]></description>
		<content:encoded><![CDATA[<p>SUID anything can be dangerous &#8211; scripts can be a problem in that they must be readable by the user who executes them, so any small bug in the script can be exploited &#8211; eg, if the script just does &#8220;echo hello&#8221;, then a non-priviliged user could alias &#8220;echo&#8221; to &#8220;rm -rf /&#8221; and run the script.</p>
<p>A SUID C program is safer in that the binary can be set with execute permissions but not read permissions, so you can run it but not disassemble it. Of course, the C program may run the system() system call and be exploitable in many other ways too. It would be less easy for a regular user to find out what to exploit, though. Any use of SUID should be avoided where possible.</p>
<p>Finally &#8211; a C-illiterate, Unix-illiterate programmer would write very poor C code for Unix. A new driver would be very likely to crash a Ferrari, but that does not make Ferraris inherently unsafe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corrector</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5299</link>
		<dc:creator><![CDATA[Corrector]]></dc:creator>
		<pubDate>Mon, 19 Apr 2010 06:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5299</guid>
		<description><![CDATA[So, how is a SUID script dangerous? You forgot to tell!

Also, how is C programming &quot;safe&quot;, especially for C beginners, especially those knowing mostly shell (most likely to just call &#039;system&#039; or &#039;popen&#039;), especially for the Unix-illiterates?]]></description>
		<content:encoded><![CDATA[<p>So, how is a SUID script dangerous? You forgot to tell!</p>
<p>Also, how is C programming &#8220;safe&#8221;, especially for C beginners, especially those knowing mostly shell (most likely to just call &#8216;system&#8217; or &#8216;popen&#8217;), especially for the Unix-illiterates?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: agrion</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5252</link>
		<dc:creator><![CDATA[agrion]]></dc:creator>
		<pubDate>Wed, 08 Apr 2009 19:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-5252</guid>
		<description><![CDATA[Good article]]></description>
		<content:encoded><![CDATA[<p>Good article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: unixshell</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-2760</link>
		<dc:creator><![CDATA[unixshell]]></dc:creator>
		<pubDate>Wed, 22 Aug 2007 19:37:11 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-2760</guid>
		<description><![CDATA[Thanks, good point. Not sure why I got that mixed up. Yes, the &quot;Sticky&quot; bit is indeed the &quot;+t&quot; flag. Article updated.]]></description>
		<content:encoded><![CDATA[<p>Thanks, good point. Not sure why I got that mixed up. Yes, the &#8220;Sticky&#8221; bit is indeed the &#8220;+t&#8221; flag. Article updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Miller</title>
		<link>http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-2672</link>
		<dc:creator><![CDATA[Andre Miller]]></dc:creator>
		<pubDate>Sat, 18 Aug 2007 21:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://nixshell.wordpress.com/2007/04/21/suid-shell-scripts-setting-the-sticky-bit/#comment-2672</guid>
		<description><![CDATA[You seem to be confusing the SUID bit with the Sticky bit in this article. They mean two different things. Sticky bit is the &#039;t&#039; flag, (chmod +t), which means something different to what you are explaining here.

Take a look here for the full explanation of the sticky bit: http://en.wikipedia.org/wiki/Sticky_bit]]></description>
		<content:encoded><![CDATA[<p>You seem to be confusing the SUID bit with the Sticky bit in this article. They mean two different things. Sticky bit is the &#8216;t&#8217; flag, (chmod +t), which means something different to what you are explaining here.</p>
<p>Take a look here for the full explanation of the sticky bit: <a href="http://en.wikipedia.org/wiki/Sticky_bit" rel="nofollow">http://en.wikipedia.org/wiki/Sticky_bit</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
