<?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"
	>
<channel>
	<title>Comments on: Unexpected Security Problem with PHP URL fopen Wrapper</title>
	<atom:link href="http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/feed/" rel="self" type="application/rss+xml" />
	<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/</link>
	<description>Changing the world, one person at a time...</description>
	<pubDate>Mon,  1 Dec 2008 18:10:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Priyadi</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-57579</link>
		<dc:creator>Priyadi</dc:creator>
		<pubDate>Wed, 22 Mar 2006 02:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-57579</guid>
		<description>#15:

1. hard to say, it depends a lot on what on the PHP code. even with url like http://example.com/foo.php?&lt;strong&gt;page=bar.php&lt;/strong&gt; it is possible to do it securely with proper sanitation

2. can't tell. but if you are aware that you are using fopen wrappers, it is less likely to have security hole. the security hole exists mainly because people are not aware the function like include() or require() can execute data from external URL.

3. &lt;a href="http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/" rel="nofollow"&gt;here&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>#15:</p>
<p>1. hard to say, it depends a lot on what on the PHP code. even with url like <a href="http://example.com/foo.php?" rel="nofollow">http://example.com/foo.php?</a><strong>page=bar.php</strong> it is possible to do it securely with proper sanitation</p>
<p>2. can&#8217;t tell. but if you are aware that you are using fopen wrappers, it is less likely to have security hole. the security hole exists mainly because people are not aware the function like include() or require() can execute data from external URL.</p>
<p>3. <a href="http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/" rel="nofollow">here</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ziben</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-57574</link>
		<dc:creator>Ziben</dc:creator>
		<pubDate>Wed, 22 Mar 2006 01:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-57574</guid>
		<description>Priyadi said: "Then, the URL will look like &lt;code&gt;http://example.com/foo.php?&lt;strong&gt;page=bar.php&lt;/strong&gt;&lt;/code&gt;."

so, let say we have the URL like &lt;code&gt;http://example.com/foo.php?&lt;strong&gt;page=1&lt;/strong&gt;&lt;/code&gt;

the question are:

1. is it still HUGE security hole with the URL above? 

2. is it any solution for this? if we use fsocketopen instead of fopen, is it more secure?

3. how to create the script to show 
&lt;code&gt;Using  Opera 6.32 on  SonyEricsson P910&lt;/code&gt;? 
could you share this with us? :d

thanks! :)</description>
		<content:encoded><![CDATA[<p>Priyadi said: &#8220;Then, the URL will look like <code>http://example.com/foo.php?&lt;strong&gt;page=bar.php&lt;/strong&gt;</code>.&#8221;</p>
<p>so, let say we have the URL like <code>http://example.com/foo.php?&lt;strong&gt;page=1&lt;/strong&gt;</code></p>
<p>the question are:</p>
<p>1. is it still HUGE security hole with the URL above? </p>
<p>2. is it any solution for this? if we use fsocketopen instead of fopen, is it more secure?</p>
<p>3. how to create the script to show<br />
<code>Using  Opera 6.32 on  SonyEricsson P910</code>?<br />
could you share this with us? <img src='http://priyadi.net/smilies/yahoo_bigsmile.gif' alt='&#58;&#100;' class='wp-smiley' width='18' height='18' title='&#58;&#100;' /></p>
<p>thanks! <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priyadi</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36910</link>
		<dc:creator>Priyadi</dc:creator>
		<pubDate>Tue, 27 Sep 2005 23:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36910</guid>
		<description>#12: default on karena default php on. tapi kayanya perlu juga dipertimbangkan untuk dimatikan secara default</description>
		<content:encoded><![CDATA[<p>#12: default on karena default php on. tapi kayanya perlu juga dipertimbangkan untuk dimatikan secara default</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36848</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Tue, 27 Sep 2005 15:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36848</guid>
		<description>Try &lt;a href="http://snoopy.sf.net/" rel="nofollow"&gt;Snoopy&lt;/a&gt; if you're looking for a solution to the "not all hosts have &lt;code&gt;allow_url_fopen&lt;/code&gt; turned on" problem; it's a sockets-based HTTP library coded entirely in PHP, and makes it very easy to send HTTP requests.</description>
		<content:encoded><![CDATA[<p>Try <a href="http://snoopy.sf.net/" rel="nofollow">Snoopy</a> if you&#8217;re looking for a solution to the &#8220;not all hosts have <code>allow_url_fopen</code> turned on&#8221; problem; it&#8217;s a sockets-based HTTP library coded entirely in PHP, and makes it very easy to send HTTP requests.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erwin Kodiat</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36843</link>
		<dc:creator>Erwin Kodiat</dc:creator>
		<pubDate>Tue, 27 Sep 2005 14:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36843</guid>
		<description>Mas Pri, kalo di IDG by default setting URL fopen Wrapper nya on atau off?</description>
		<content:encoded><![CDATA[<p>Mas Pri, kalo di IDG by default setting URL fopen Wrapper nya on atau off?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36672</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 26 Sep 2005 17:19:47 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36672</guid>
		<description>oh.. kira-kira begini toh masalahnya... thanks</description>
		<content:encoded><![CDATA[<p>oh.. kira-kira begini toh masalahnya&#8230; thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36625</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 26 Sep 2005 05:51:11 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36625</guid>
		<description>#9: jangan include file yang remote (berada di tempat lain, di luar situs ybs) :)

.. eh, bener kan? :-\</description>
		<content:encoded><![CDATA[<p>#9: jangan include file yang remote (berada di tempat lain, di luar situs ybs) <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
<p>.. eh, bener kan? <img src='http://priyadi.net/smilies/yahoo_question.gif' alt='&#58;&#45;&#92;' class='wp-smiley' width='18' height='18' title='&#58;&#45;&#92;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jauhari</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36570</link>
		<dc:creator>Jauhari</dc:creator>
		<pubDate>Mon, 26 Sep 2005 01:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36570</guid>
		<description>artinya apa to?

security gimana? 
Jadi make include, require ndak aman gitu?
 
BASA INGGRIS = 0 :((</description>
		<content:encoded><![CDATA[<p>artinya apa to?</p>
<p>security gimana?<br />
Jadi make include, require ndak aman gitu?</p>
<p>BASA INGGRIS = 0 <img src='http://priyadi.net/smilies/yahoo_cry.gif' alt='&#58;&#40;&#40;' class='wp-smiley' width='22' height='18' title='&#58;&#40;&#40;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iang</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36532</link>
		<dc:creator>iang</dc:creator>
		<pubDate>Sun, 25 Sep 2005 17:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36532</guid>
		<description>#7: gak lengkap kalo gak ada SSH :))</description>
		<content:encoded><![CDATA[<p>#7: gak lengkap kalo gak ada SSH <img src='http://priyadi.net/smilies/yahoo_laughloud.gif' alt='&#58;&#41;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: didats</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36525</link>
		<dc:creator>didats</dc:creator>
		<pubDate>Sun, 25 Sep 2005 15:46:28 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36525</guid>
		<description>hehehe... 
didats ga dapet akses ssh... 
semua udah diatur.. semoga aja mereka udah melakukannya.. 

;)</description>
		<content:encoded><![CDATA[<p>hehehe&#8230;<br />
didats ga dapet akses ssh&#8230;<br />
semua udah diatur.. semoga aja mereka udah melakukannya.. </p>
<p><img src='http://priyadi.net/smilies/yahoo_wink.gif' alt='&#59;&#41;' class='wp-smiley' width='18' height='18' title='&#59;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priyadi</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36523</link>
		<dc:creator>Priyadi</dc:creator>
		<pubDate>Sun, 25 Sep 2005 15:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36523</guid>
		<description>#4: karena sepertinya sekarang ini orang2 jahat sudah punya spider untuk mencari URL yang berpola seperti ini. pasang situs yang punya URL seperti itu, dan tunggu 1-2 minggu, kemungkinan besar sudah ada yang ngerjain :)

#5: kalau url.fopen_wrappers off harusnya gak masalah. tapi sebaiknya sih scriptnya yang dibenerin. require() juga sama masalahnya.</description>
		<content:encoded><![CDATA[<p>#4: karena sepertinya sekarang ini orang2 jahat sudah punya spider untuk mencari URL yang berpola seperti ini. pasang situs yang punya URL seperti itu, dan tunggu 1-2 minggu, kemungkinan besar sudah ada yang ngerjain <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
<p>#5: kalau url.fopen_wrappers off harusnya gak masalah. tapi sebaiknya sih scriptnya yang dibenerin. require() juga sama masalahnya.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Belutz</title>
		<link>http://priyadi.net/archives/2005/09/25/unexpected-security-problem-with-php-url-fopen-wrapper/#comment-36521</link>
		<dc:creator>Belutz</dc:creator>
		<pubDate>Sun, 25 Sep 2005 14:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/?p=465#comment-36521</guid>
		<description>Jadi solusi nya apa mas pri? kalo url.fopen_wrappers di off masih bisa pake &lt;code&gt;include ("filename.ext");&lt;/code&gt; kan? karena ini memanggil file local bukan file yg menggunakan url? cmiiw
apakah ini juga pengaruh dengan syntax &lt;code&gt;require();&lt;/code&gt; ?</description>
		<content:encoded><![CDATA[<p>Jadi solusi nya apa mas pri? kalo url.fopen_wrappers di off masih bisa pake <code>include ("filename.ext");</code> kan? karena ini memanggil file local bukan file yg menggunakan url? cmiiw<br />
apakah ini juga pengaruh dengan syntax <code>require();</code> ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
