<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	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>php security blog</title>
	<atom:link href="http://phpsecurity.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpsecurity.wordpress.com</link>
	<description>security threads for web developers from bernd essl</description>
	<lastBuildDate>Wed, 30 Jul 2008 21:18:59 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='phpsecurity.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/fbb7ce9467e7efd2aa195ce141eac4f2?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>php security blog</title>
		<link>http://phpsecurity.wordpress.com</link>
	</image>
			<item>
		<title>hide your JavaScript</title>
		<link>http://phpsecurity.wordpress.com/2008/03/02/hide-your-javascript/</link>
		<comments>http://phpsecurity.wordpress.com/2008/03/02/hide-your-javascript/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 12:28:57 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[base62]]></category>
		<category><![CDATA[encode]]></category>
		<category><![CDATA[obfuscate]]></category>
		<category><![CDATA[packer]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/?p=77</guid>
		<description><![CDATA[If there is a reason why you don&#8217;t want humans to read your JavaScript code, you can use the packer from
http://dean.edwards.name/packer/ to obfuscated it (online).
The packer compress the code to one line, deletes all comments and has the option to encode it with Base62. You can put the generated code in your code, it should [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=77&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If there is a reason why you don&#8217;t want humans to read your JavaScript code, you can use the packer from<br />
<a href="http://dean.edwards.name/packer/">http://dean.edwards.name/packer/</a> to obfuscated it (online).</p>
<p>The packer compress the code to one line, deletes all comments and has the option to encode it with Base62. You can put the generated code in your code, it should work with any browser.<br />
You must correctly terminate all JavaScript statements with semi-colons.</p>
<p>Here an example script and the output from the packer:<br />
<span id="more-77"></span></p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;margin-bottom:10px;padding:0.5em;">
var a, b;</p>
<p>a = &#8220;hello &#8220;;<br />
b = &#8220;world!&#8221;;</p>
<p>function send_msg(a, b) {<br />
    // alert a and b<br />
    alert(a +b);<br />
}</p>
<p>send_msg(a, b);
</p></div>
<p>after packing </p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;margin-bottom:10px;padding:0.5em;">var a,b;a=&#8221;hello &#8220;;b=&#8221;world!&#8221;;function send_msg(a,b){alert(a+b)}send_msg(a,b);</div>
<p>after packing and Base62 encoding</p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;margin-bottom:10px;padding:0.5em;">eval(function(p,a,c,k,e,r){e=String;if(!&#8221;.replace(/^/,String)){while(c&#8211;)r[c]=k[c]||c;k=[function(e){return r[e]}];e=function(){return&#8217;\w+&#8217;};c=1};while(c&#8211;)if(k[c])p=p.replace(new RegExp(&#8216;\b&#8217;+e(c)+&#8217;\b&#8217;,'g&#8217;),k[c]);return p}(&#8216;6 0,1;0=&#8221;5 &#8220;;1=&#8221;3!&#8221;;4 2(0,1){7(0+1)}2(0,1);&#8217;,8,8,&#8217;a|b|send_msg|world|function|hello|var|alert&#8217;.split(&#8216;|&#8217;),0,{}))</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/77/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/77/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/77/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/77/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/77/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=77&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2008/03/02/hide-your-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>
	</item>
		<item>
		<title>hardening wordpress</title>
		<link>http://phpsecurity.wordpress.com/2008/02/26/hardening-wordpress/</link>
		<comments>http://phpsecurity.wordpress.com/2008/02/26/hardening-wordpress/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 10:26:43 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/?p=76</guid>
		<description><![CDATA[I had positive feedback after posting my article about hardening Joomla!, so I will now focus on the blog-software wordpress.
Here are a couple of tips that you can use to make your wordpress a bit securer.
Change the default name of your administrator login (admin) and choose a strong password for all your accounts. It&#8217;s also [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=76&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I had positive feedback after posting my article about hardening Joomla!, so I will now focus on the blog-software wordpress.<br />
Here are a couple of tips that you can use to make your wordpress a bit securer.</p>
<p>Change the default name of your administrator login (admin) and choose a strong password for all your accounts. It&#8217;s also a good idea to use different login- and author-names, wordpress has also a great user levels.<br />
<span id="more-76"></span><br />
Hide the version of wordpress by removing the generator-meta-tag. You find it in the template code it should look something like this:<br />
&lt;meta name=&#8221;generator&#8221; content=&#8221;WordPress &#8221; /&gt;<br />
Please note it&#8217;s possible to view the version in the feed.</p>
<p>If your register-globals settings are on, try to disable them (php.ini or .htaccess).</p>
<p>Turn your Magic quotes for incoming GET/POST/Cookie data on, again SQL injections.</p>
<p>Restrict access with a .htaccess in your wp-admin/ folder. Take a look on an older posting <a href="http://phpsecurity.wordpress.com/2007/12/22/htaccess-tips-and-tricks/">http://phpsecurity.wordpress.com/2007/12/22/htaccess-tips-and-tricks/</a> where you find solutions for limiting by IP addresses and password protection.</p>
<p>Delete disabled templates and plugins that you don&#8217;t need from your webspace.</p>
<p>Block wordpress-folders from being indexed by search engines.<br />
Add the following line to your robots.txt:<br />
Disallow: /wp-*</p>
<p>With an online tool from blogsecurity.net, you can scan your wordpress. You need a plugin before doing that.<br />
http://blogsecurity.net/wordpress/news-140707/<br />
http://blogsecurity.net/cgi-bin/wp-scanner.cgi</p>
<p>Disable public browsing of the plugin folder, by putting an empty index.html in wp-content/plugins/.</p>
<p>And last but not least, update your wordpress, your plugins and make regular backups of your site and database.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/76/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/76/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/76/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/76/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/76/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=76&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2008/02/26/hardening-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>
	</item>
		<item>
		<title>playing with a backdoor</title>
		<link>http://phpsecurity.wordpress.com/2008/02/14/playing-with-a-backdoor/</link>
		<comments>http://phpsecurity.wordpress.com/2008/02/14/playing-with-a-backdoor/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 20:27:42 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Injection]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[backdoor]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netcat]]></category>
		<category><![CDATA[ngrep]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/?p=67</guid>
		<description><![CDATA[I played last night with a backdoor shell that I found on the net and will show you how this works and how you can find traces if you are the system administrator.
I used 2 vm&#8217;s (virtual machines), both based on Debian/Linux one called &#8220;victim&#8221; it simulates the cracked server where the backdoor runs and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=67&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I played last night with a backdoor shell that I found on the net and will show you how this works and how you can find traces if you are the system administrator.</p>
<p>I used 2 vm&#8217;s (virtual machines), both based on Debian/Linux one called &#8220;victim&#8221; it simulates the cracked server where the backdoor runs and the other box called &#8220;hacky&#8221; where the bad guy is sitting in front :)</p>
<p>The first step of the bad guy is to start a server that listens on some port (12345) on his box, a good program for this is netcat, the command could be something like: netcat -l -p 12345</p>
<p><span id="more-67"></span></p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/a1_master_setup.png' alt='setup' /></p>
<p>After compiling the backdoor in an executable program on the cracked server (&#8220;victim&#8221;), the bad guy starts it and sends a shell to his box home.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/1_victim_setup.png' alt='start the backdoor' /></p>
<p>Back at the shell of the bad guy we see that the backdoor sends us some information about the box and the banner of the author of the script.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/2_master_info.png' alt='ping from backdoor' /></p>
<p>The bad guy can now send every command to the cracked server, like &#8220;hostname&#8221; and he gets the hostname which is &#8220;victim&#8221; back</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/3_sendhostname.png' alt='send hostname' /></p>
<p>So what can a system administrator do in this case?</p>
<p>First of all, don&#8217;t panic and plug out the computer, a lot of traces could be destroyed after you do that.</p>
<p>A good way is to check the process list, with something like &#8220;ps ax&#8221; or &#8220;ps fax&#8221;. As you can see there is the process of the backdoor (marked red)</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/4_detective_psax.png' alt='find backdoor with ps ax' /></p>
<p>We know now the process ID the port and the IP where the shell is listening. Now it&#8217;s time for another great program  called ngrep. With ngrep you can sniff network traffic in nearly the same way you can use the normal grep on Linux.<br />
Start ngrep on the port that the backdoor uses.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/6_start-ngrep.png' alt='sniffing with ngrep' /></p>
<p>The bad guy sends the command &#8220;uptime&#8221;.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/7_send_uptime_cmd.png' alt='send uptime' /></p>
<p>And the administrator sees in his ngrep output the &#8220;uptime&#8221; request also.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2008/02/8_ngrep_sniff.png' alt='ngrep sniffed something' /></p>
<p>Yes this was a very lucky system administrator, in the real life crackers use encrypted backdoors or rootkit which can hide processes or manipulate commands like ps.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/67/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/67/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=67&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2008/02/14/playing-with-a-backdoor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/a1_master_setup.png" medium="image">
			<media:title type="html">setup</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/1_victim_setup.png" medium="image">
			<media:title type="html">start the backdoor</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/2_master_info.png" medium="image">
			<media:title type="html">ping from backdoor</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/3_sendhostname.png" medium="image">
			<media:title type="html">send hostname</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/4_detective_psax.png" medium="image">
			<media:title type="html">find backdoor with ps ax</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/6_start-ngrep.png" medium="image">
			<media:title type="html">sniffing with ngrep</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/7_send_uptime_cmd.png" medium="image">
			<media:title type="html">send uptime</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2008/02/8_ngrep_sniff.png" medium="image">
			<media:title type="html">ngrep sniffed something</media:title>
		</media:content>
	</item>
		<item>
		<title>Spam protection with Akismet</title>
		<link>http://phpsecurity.wordpress.com/2007/12/23/spam-protection-with-akismet/</link>
		<comments>http://phpsecurity.wordpress.com/2007/12/23/spam-protection-with-akismet/#comments</comments>
		<pubDate>Sun, 23 Dec 2007 19:32:20 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[antispam]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/12/23/spam-protection-with-akismet/</guid>
		<description><![CDATA[Akismet, or Automattic Kismet, is a text spam filtering service created by Automattic, the corporation which employs most of the main developers of WordPress.
When a new comment is posted on your site, Akismet webs service catches the comment and tests whether a comment is valued as &#8220;spam&#8221; or &#8220;not spam&#8221;.
This is a good protection because [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=62&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://akismet.com/">Akismet</a>, or Automattic Kismet, is a text spam filtering service created by Automattic, the corporation which employs most of the main developers of WordPress.</p>
<p>When a new comment is posted on your site, Akismet webs service catches the comment and tests whether a comment is valued as &#8220;spam&#8221; or &#8220;not spam&#8221;.<span id="more-62"></span><br />
This is a good protection because a lot of bloggers and the WordPress software use Akismet and flag new spam pattern to the Akismet site.</p>
<p>If you have a comment form on your webapp you can protect it with the Akismet-service and some PHP code around. I use it for a python application and it catches a lot of comment spam day for day and as Douglas Adams says &#8220;I may not have gone where I intended to go, but I think I have ended up where I needed to be.&#8221;.</p>
<p>First you need  to generate a WordPress API key on this page. You don&#8217;t need to get a blog, choose the &#8220;just an account&#8221; option when signing up.<br />
<a href="http://wordpress.com/signup/">http://wordpress.com/signup/</a></p>
<p>There are two (and sure more) classes, that make a implementation in your own webapp easy as possible.<br />
Take a look at the docs on both sites:</p>
<p>PHP 4 class by Bret Kuhns:<br />
<a href="http://miphp.net/pages/akismet_docs">http://miphp.net/pages/akismet_docs</a></p>
<p>PHP 5 class by Alex Potsides:<br />
<a href="http://www.achingbrain.net/stuff/akismet/#usage">http://www.achingbrain.net/stuff/akismet/#usage</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/62/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/62/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=62&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/12/23/spam-protection-with-akismet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>
	</item>
		<item>
		<title>Automated testing with Selenium IDE</title>
		<link>http://phpsecurity.wordpress.com/2007/11/24/automated-testing-with-selenium-ide/</link>
		<comments>http://phpsecurity.wordpress.com/2007/11/24/automated-testing-with-selenium-ide/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 19:06:37 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdeveloper]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/11/24/automated-testing-with-selenium-ide/</guid>
		<description><![CDATA[Automated testing is an extremely useful bug-killing tool for the modern Web developer and a lot of vulnerability in fact are based on bugs.
With Selenium IDE, a free Firefox extension, you can easily record your clicks and inputs in the browser, set tests and replay the records. If a test failed you get a feedback.
I&#8217;ll [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=48&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Automated testing is an extremely useful bug-killing tool for the modern Web developer and a lot of vulnerability in fact are based on bugs.<br />
With Selenium IDE, a free Firefox extension, you can easily record your clicks and inputs in the browser, set tests and replay the records. If a test failed you get a feedback.</p>
<p>I&#8217;ll show you an example, to make the power of Selenium clearer.<br />
<span id="more-48"></span><br />
This example code echoes a form value.</p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;padding:0.5em;">
&lt;form&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221; value=&#8221;" /&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;send&#8221; /&gt;<br />
&lt;/form&gt;</p>
<p>&lt;? echo $_GET['name']; ?&gt;
</p></div>
<p>Start selenium and make sure the record lamp (red) is on. All steps will now record as long as the lamp is on.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/selenium_1.png' alt='selenium 1' /></p>
<p>Send a string &#8220;bla&#8221; over the form</p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/selenium_2.png' alt='selenium 2' /></p>
<p>Mark the output &#8220;bla&#8221; and choose in the right mouse context &#8220;verifyTextPresents bla&#8221;.<br />
This is a testcase that &#8220;bla&#8221; is on the site displayed.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/selenium_3.png' alt='selenium 3' /></p>
<p>Go back to the selenium window and stop the recording (click on the red lamp).<br />
Now it&#8217;s possible to run a playback of the recording, in 3 tempos (Run, Walk, Step), by pressing the green play button.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/selenium_4.png' alt='selenium 4' /></p>
<p>Ok time for a bug, change the variable name in the php line from &#8220;name&#8221; to &#8220;foo&#8221;</p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;padding:0.5em;">
&lt;form&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;name&#8221; value=&#8221;" /&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;send&#8221; /&gt;<br />
&lt;/form&gt;</p>
<p>&lt;? echo $_GET['<strong>foo</strong>']; ?&gt;
</div>
<p>now we run a test in selenium and get a red marked error, because selenium doesn&#8217;t found the string &#8220;bla&#8221;.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/selenium_5.png' alt='selenium 5' /></p>
<p>This is only a bit of the power from Selenium. You can also debug with breakpoints, save tests in a lot of formats, edit the tests by hand, &#8230;</p>
<p>website: <a href="http://www.openqa.org/selenium-ide/">http://www.openqa.org/selenium-ide/</a><br />
example video: <a href="http://wiki.openqa.org/display/SIDE/Recording+a+Test">http://wiki.openqa.org/display/SIDE/Recording+a+Test</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=48&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/11/24/automated-testing-with-selenium-ide/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/selenium_1.png" medium="image">
			<media:title type="html">selenium 1</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/selenium_2.png" medium="image">
			<media:title type="html">selenium 2</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/selenium_3.png" medium="image">
			<media:title type="html">selenium 3</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/selenium_4.png" medium="image">
			<media:title type="html">selenium 4</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/selenium_5.png" medium="image">
			<media:title type="html">selenium 5</media:title>
		</media:content>
	</item>
		<item>
		<title>System call injection</title>
		<link>http://phpsecurity.wordpress.com/2007/11/17/system-call-injection/</link>
		<comments>http://phpsecurity.wordpress.com/2007/11/17/system-call-injection/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 20:16:08 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Injection]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[escapeshellarg]]></category>
		<category><![CDATA[escapeshellcmd]]></category>
		<category><![CDATA[exec]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/11/17/system-call-injection/</guid>
		<description><![CDATA[With the follow commands you can execute an external program on the system (server).

shell_exec
proc_open
system
exec
passthru
popen
&#8220; (back tick operator)

This form sends a domain name and prints the result back from the linux program whois.


&#60;form&#62;
&#60;input type=&#8221;text&#8221; name=&#8221;domain&#8221; value=&#8221;" /&#62;
&#60;input type=&#8221;submit&#8221; value=&#8221;whois&#8221; /&#62;
&#60;/form&#62;
&#60;pre&#62;
&#60;?
&#160;&#160;&#160;&#160;if ($_GET['domain']) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;system(&#8220;whois &#8220;.$_GET['domain']);
&#160;&#160;&#160;&#160;}
?&#62;
&#60;/pre&#62;

send example.com to the whois program

The problem of this script is that the user [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=45&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>With the follow commands you can execute an external program on the system (server).</p>
<ul>
<li>shell_exec</li>
<li>proc_open</li>
<li>system</li>
<li>exec</li>
<li>passthru</li>
<li>popen</li>
<li>&#8220; (back tick operator)</li>
</ul>
<p>This form sends a domain name and prints the result back from the linux program whois.</p>
<p><span id="more-45"></span></p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;padding:0.5em;">
&lt;form&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;domain&#8221; value=&#8221;" /&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;whois&#8221; /&gt;<br />
&lt;/form&gt;</p>
<p>&lt;pre&gt;<br />
&lt;?<br />
&nbsp;&nbsp;&nbsp;&nbsp;if ($_GET['domain']) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;system(&#8220;whois &#8220;.$_GET['domain']);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
?&gt;<br />
&lt;/pre&gt;
</p></div>
<p><em>send example.com to the whois program</em></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/whois-output.png' alt='whois output' /></p>
<p>The problem of this script is that the user input touches directly the system without any validation. An attacker can end the whois command with a semicolon (;) and add any command he wants.</p>
<p><em>send  &#8220;;uname -a&#8221; to the system and print system informations</em></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/whois-injected.png' alt='whois injected' /></p>
<p>Using system calls which can be manipulate could be very dangerous. Never trust the user, always Filter Input.<br />
If you must use system calls, use “escapeshellarg” and “escapeshellcmd” to escape strings.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=45&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/11/17/system-call-injection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/whois-output.png" medium="image">
			<media:title type="html">whois output</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/whois-injected.png" medium="image">
			<media:title type="html">whois injected</media:title>
		</media:content>
	</item>
		<item>
		<title>Subversion a security risk?</title>
		<link>http://phpsecurity.wordpress.com/2007/11/12/subversion-a-security-risk/</link>
		<comments>http://phpsecurity.wordpress.com/2007/11/12/subversion-a-security-risk/#comments</comments>
		<pubDate>Mon, 12 Nov 2007 12:41:01 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[danger]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spy]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/11/12/subversion-a-security-risk/</guid>
		<description><![CDATA[Subversion allows users to keep track of changes made to source code. It&#8217;s very handy and many developers use it everyday, like me.
Some websites have a svn checkout in their public web folder to make faster updates if code change.
Letting the cat out of the bag right now: If the webserver has directory listening on, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=19&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Subversion allows users to keep track of changes made to source code. It&#8217;s very handy and many developers use it everyday, like me.</p>
<p>Some websites have a svn checkout in their public web folder to make faster updates if code change.</p>
<p>Letting the cat out of the bag right now: If the webserver has directory listening on, it&#8217;s easy to spy parts of your website.<br />
If you take a closer look to the structure of Subversion you will notice that Subversion creates on every folder a subfolder called &#8220;.svn&#8221; with some files. </p>
<p>A example is a webshop which uses Subversion on the web server.</p>
<p><em>The start site of the webshop</em></p>
<p><span id="more-19"></span></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/svn_webshop.png' alt='webshop index' /></p>
<p><em>After adding a &#8220;.svn/&#8221; in the URL, you see the svn structure.</em></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/svn_root.png' alt='view svn root' /></p>
<p><em>The subfolder &#8220;text-base&#8221; shows us which files are in the folder</em></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/svn_text-base.png' alt='svn text-base folder' /></p>
<p><em>we can view the configuration file &#8230;</em></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/svn_config.png' alt='view config file' /></p>
<p><em>.. and the database dump</em></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/svn_sql.png' alt='view sql dump' /></p>
<p>Sure this was fictitious, but we saw that it was easy to look at the structure of the site and view the files on the server with an webbrowser, we didn&#8217;t know before.</p>
<p>Take care of your production site if you have running a Subversion checkout on it!</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=19&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/11/12/subversion-a-security-risk/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/svn_webshop.png" medium="image">
			<media:title type="html">webshop index</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/svn_root.png" medium="image">
			<media:title type="html">view svn root</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/svn_text-base.png" medium="image">
			<media:title type="html">svn text-base folder</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/svn_config.png" medium="image">
			<media:title type="html">view config file</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/svn_sql.png" medium="image">
			<media:title type="html">view sql dump</media:title>
		</media:content>
	</item>
		<item>
		<title>Stop Spam with reCAPTCHA</title>
		<link>http://phpsecurity.wordpress.com/2007/11/10/stop-spam-with-recaptcha/</link>
		<comments>http://phpsecurity.wordpress.com/2007/11/10/stop-spam-with-recaptcha/#comments</comments>
		<pubDate>Sat, 10 Nov 2007 14:56:23 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[recaptcha]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/11/10/stop-spam-with-recaptcha/</guid>
		<description><![CDATA[CAPTCHAs (Completely Automated Public Turing test to tell Computers and Humans Apart) can protect you and your users from spammers and crackers.
Broadly spoken, user don&#8217;t like this ugly looking pictures and I saw a lot of false implemented code or very easy to crack. To see some examples which CAPTCHAs can be broken you should [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=35&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>CAPTCHAs (Completely Automated Public Turing test to tell Computers and Humans Apart) can protect you and your users from spammers and crackers.<br />
Broadly spoken, user don&#8217;t like this ugly looking pictures and I saw a lot of false implemented code or very easy to crack. To see some examples which CAPTCHAs can be broken you should check out <a href="http://sam.zoy.org/pwntcha/">http://sam.zoy.org/pwntcha/</a></p>
<p>An easy to implement, free and I guess secure service can be found on recaptcha.org and you help by <a href="http://recaptcha.net/learnmore.html">digitizing books</a>.</p>
<p><span id="more-35"></span></p>
<p>You go there, create an account, generate a API key and include the code into your application form. After 10 minutes you have a nice secure solution.</p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/recaptcha.png' alt='recaptcha' /></p>
<p>I&#8217;ve been using it now for some months and I&#8217;m very happy with it.<br />
An important point to me was that recaptcha has audio support, so visually handicapped people also can login.</p>
<p>On the site you can find example code and plugins for many programming languages and well known applications.</p>
<p><a href="http://recaptcha.net">http://recaptcha.net</a><br />
<a href="http://recaptcha.net/plugins/php/">http://recaptcha.net/plugins/php/</a><br />
<a href="http://www.cs.sfu.ca/~mori/research/gimpy/">Breaking a Visual CAPTCHA</a><br />
<a href="http://sam.zoy.org/pwntcha/">http://sam.zoy.org/pwntcha/</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=35&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/11/10/stop-spam-with-recaptcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/recaptcha.png" medium="image">
			<media:title type="html">recaptcha</media:title>
		</media:content>
	</item>
		<item>
		<title>Pixy: XSS and SQLI Scanner for PHP Programs</title>
		<link>http://phpsecurity.wordpress.com/2007/11/09/pixy-xss-and-sqli-scanner-for-php-programs/</link>
		<comments>http://phpsecurity.wordpress.com/2007/11/09/pixy-xss-and-sqli-scanner-for-php-programs/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 15:01:55 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Information]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[XSS]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[Injection]]></category>
		<category><![CDATA[scanner]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sqli]]></category>
		<category><![CDATA[sqlinjection]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/11/09/pixy-xss-and-sqli-scanner-for-php-programs/</guid>
		<description><![CDATA[Pixy is a free Java program that performs automatic scans of PHP 4 source code, aimed at the detection of Cross-site scripting (XSS) and SQL injection (SQLI) vulnerabilities. Pixy takes a PHP program as input, and creates a report that lists possible vulnerable points in the program, together with additional information for understanding the vulnerability.
There [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=34&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Pixy is a free Java program that performs automatic scans of PHP 4 source code, aimed at the detection of Cross-site scripting (XSS) and SQL injection (SQLI) vulnerabilities. Pixy takes a PHP program as input, and creates a report that lists possible vulnerable points in the program, together with additional information for understanding the vulnerability.</p>
<p>There is also a easy to use webinterface where you can upload your files or paste the code to analyse it.</p>
<p><a href="http://pixybox.seclab.tuwien.ac.at/pixy/webinterface.php">http://pixybox.seclab.tuwien.ac.at/pixy/webinterface.php</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/34/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/34/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=34&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/11/09/pixy-xss-and-sqli-scanner-for-php-programs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>
	</item>
		<item>
		<title>What does a phpshell look like?</title>
		<link>http://phpsecurity.wordpress.com/2007/11/08/what-does-a-phpshell-look-like/</link>
		<comments>http://phpsecurity.wordpress.com/2007/11/08/what-does-a-phpshell-look-like/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 23:31:27 +0000</pubDate>
		<dc:creator>bernd essl</dc:creator>
				<category><![CDATA[Injection]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RFI]]></category>
		<category><![CDATA[phpshell]]></category>
		<category><![CDATA[remotefile]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://phpsecurity.wordpress.com/2007/11/08/what-does-a-phpshell-look-like/</guid>
		<description><![CDATA[After my last posting &#8220;(evil) Register Globals (on)&#8220;, I got an email asking what remote files look like and what they do. I call remote files &#8220;phpshells&#8221;. phpshells can send commands directly to the server system over http.
An easy version could be using a GET variable for a system call. Indeed, it&#8217;s enough to steal [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=25&subd=phpsecurity&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After my last posting &#8220;<a href="http://phpsecurity.wordpress.com/2007/11/07/evil-register-globals-on/">(evil) Register Globals (on)</a>&#8220;, I got an email asking what remote files look like and what they do. I call remote files &#8220;phpshells&#8221;. phpshells can send commands directly to the server system over http.</p>
<p>An easy version could be using a GET variable for a system call. Indeed, it&#8217;s enough to steal information, destroy pages and do other nasty stuff on a web server.</p>
<div style="border:1px dashed rgb(140, 172, 187);overflow:auto;background-color:rgb(247, 249, 250);color:rgb(101, 101, 101);font-size:12px;padding:0.5em;">&lt;?php<br />
&nbsp;&nbsp;&nbsp;&nbsp;system($_GET['cmd']);<br />
?&gt;</div>
<p>The r57shell is the deluxe version of a phpshell. I added some pictures below. It&#8217;s an interface and has functions like ftp, mail and many more.</p>
<p><span id="more-25"></span></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/rshell1.png' alt='shell1' /></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/rshell4b.png' alt='rshell4b' /></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/rshellftp.png' alt='rshellftp.png' /></p>
<p><!--more--></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/rshell2.png' alt='rshell2' /></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/rshell3.png' alt='rshell 3' /></p>
<p><img src='http://phpsecurity.files.wordpress.com/2007/11/rshell4.png' alt='rshell4a' /></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/phpsecurity.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/phpsecurity.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/phpsecurity.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/phpsecurity.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/phpsecurity.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/phpsecurity.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/phpsecurity.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/phpsecurity.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/phpsecurity.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/phpsecurity.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/phpsecurity.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/phpsecurity.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=phpsecurity.wordpress.com&blog=1858945&post=25&subd=phpsecurity&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsecurity.wordpress.com/2007/11/08/what-does-a-phpshell-look-like/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7eaf1643f948b71fd91c0947a195d913?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">bernd essl</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/rshell1.png" medium="image">
			<media:title type="html">shell1</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/rshell4b.png" medium="image">
			<media:title type="html">rshell4b</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/rshellftp.png" medium="image">
			<media:title type="html">rshellftp.png</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/rshell2.png" medium="image">
			<media:title type="html">rshell2</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/rshell3.png" medium="image">
			<media:title type="html">rshell 3</media:title>
		</media:content>

		<media:content url="http://phpsecurity.files.wordpress.com/2007/11/rshell4.png" medium="image">
			<media:title type="html">rshell4a</media:title>
		</media:content>
	</item>
	</channel>
</rss>