<?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/"
		>
<channel>
	<title>Comments on: Some Security Concerns While Programming In Ruby</title>
	<atom:link href="http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/</link>
	<description>Helping Ruby Programmers become Awesome</description>
	<lastBuildDate>Fri, 18 May 2012 22:54:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Henryk Gerlach</title>
		<link>http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/comment-page-1/#comment-78652</link>
		<dc:creator>Henryk Gerlach</dc:creator>
		<pubDate>Sun, 17 Aug 2008 18:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=108#comment-78652</guid>
		<description>What other vulnerabilities in Ruby (not Rails) can you think of? Iâ€™d definitely like to hear and add them here.
Well, constantize is more dangerous, than it looks like see
http://blog.littleimpact.de/index.php/2008/08/13/constantize-with-care/

This is nothing new (cf. http://wiki.rubyonrails.org/rails/pages/SingleTableInheritance) but I show how to exploit it in conjunction another security hole.</description>
		<content:encoded><![CDATA[<p>What other vulnerabilities in Ruby (not Rails) can you think of? Iâ€™d definitely like to hear and add them here.<br />
Well, constantize is more dangerous, than it looks like see<br />
<a href="http://blog.littleimpact.de/index.php/2008/08/13/constantize-with-care/" rel="nofollow">http://blog.littleimpact.de/index.php/2008/08/13/constantize-with-care/</a></p>
<p>This is nothing new (cf. <a href="http://wiki.rubyonrails.org/rails/pages/SingleTableInheritance" rel="nofollow">http://wiki.rubyonrails.org/rails/pages/SingleTableInheritance</a>) but I show how to exploit it in conjunction another security hole.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henryk Gerlach</title>
		<link>http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/comment-page-1/#comment-77704</link>
		<dc:creator>Henryk Gerlach</dc:creator>
		<pubDate>Tue, 12 Aug 2008 14:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=108#comment-77704</guid>
		<description>&gt; In general, there are no safe way to use system. 
I don&#039;t know, how you came to this conclusion.

There are 2 ways to call system (http://www.ruby-doc.org/core/classes/Kernel.html#M005982):

a) with a single string
system(&quot;echo $(seq 5)&quot;)
that&#039;s prone to shell injection, unless the string is properly escaped (see e.g. http://www.a-k-r.org/escape/)

b) with a command-string and each argument as an additional string:
system(&quot;echo&quot;, &quot;$(seq 5)&quot;)

This is save against shell injection. (as save as the called command/shell script).</description>
		<content:encoded><![CDATA[<p>&gt; In general, there are no safe way to use system.<br />
I don&#8217;t know, how you came to this conclusion.</p>
<p>There are 2 ways to call system (<a href="http://www.ruby-doc.org/core/classes/Kernel.html#M005982" rel="nofollow">http://www.ruby-doc.org/core/classes/Kernel.html#M005982</a>):</p>
<p>a) with a single string<br />
system(&#8220;echo $(seq 5)&#8221;)<br />
that&#8217;s prone to shell injection, unless the string is properly escaped (see e.g. <a href="http://www.a-k-r.org/escape/" rel="nofollow">http://www.a-k-r.org/escape/</a>)</p>
<p>b) with a command-string and each argument as an additional string:<br />
system(&#8220;echo&#8221;, &#8220;$(seq 5)&#8221;)</p>
<p>This is save against shell injection. (as save as the called command/shell script).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/comment-page-1/#comment-61673</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 10 Jun 2008 13:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=108#comment-61673</guid>
		<description>From what I can tell there are four vectors for command-injection in Ruby. They all require the same treatment (generally avoidance when untrusted input is involved) but you should be wary of:

Kernel.system
Kernel.exec
%x[]
` (The back-tick operator)</description>
		<content:encoded><![CDATA[<p>From what I can tell there are four vectors for command-injection in Ruby. They all require the same treatment (generally avoidance when untrusted input is involved) but you should be wary of:</p>
<p>Kernel.system<br />
Kernel.exec<br />
%x[]<br />
` (The back-tick operator)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-04-30 &#171; Amy G. Dala</title>
		<link>http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/comment-page-1/#comment-51296</link>
		<dc:creator>links for 2008-04-30 &#171; Amy G. Dala</dc:creator>
		<pubDate>Wed, 30 Apr 2008 14:32:54 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=108#comment-51296</guid>
		<description>[...] RubyLearning.com Blog (tags: ruby programming security) [...]</description>
		<content:encoded><![CDATA[<p>[...] RubyLearning.com Blog (tags: ruby programming security) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2008-04-29 &#124; Libin Pan</title>
		<link>http://rubylearning.com/blog/2008/04/28/some-security-concerns-while-programming-in-ruby/comment-page-1/#comment-50907</link>
		<dc:creator>links for 2008-04-29 &#124; Libin Pan</dc:creator>
		<pubDate>Tue, 29 Apr 2008 06:32:51 +0000</pubDate>
		<guid isPermaLink="false">http://rubylearning.com/blog/?p=108#comment-50907</guid>
		<description>[...] RubyLearning.com Blog Some Security Concerns While Programming In Ruby (tags: programming rails ruby security) [...]</description>
		<content:encoded><![CDATA[<p>[...] RubyLearning.com Blog Some Security Concerns While Programming In Ruby (tags: programming rails ruby security) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

