<?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: Essential PHP Security and MD5 Reversing</title>
	<atom:link href="http://benramsey.com/archives/essential-php-security-and-md5-reversing/feed/" rel="self" type="application/rss+xml" />
	<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/</link>
	<description>PHP and Other Techno-babble</description>
	<lastBuildDate>Mon, 01 Feb 2010 11:59:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Trond</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2802</link>
		<dc:creator>Trond</dc:creator>
		<pubDate>Mon, 28 Nov 2005 15:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2802</guid>
		<description>Cool...interesting site (md5.rednoize.com).

Speaking of web / application security, there are lots of books coving the topic. Although I haven&#039;t read Essential PHP Security, and am sure it&#039;s good for those of us programming in PHP (and other languages), I&#039;d recommend these security-oriented (more &quot;general purpose&quot; or &quot;programming-language-independent&quot;, perhaps?) books:

&lt;ul&gt;
&lt;li&gt;Building Secure Software (http://www.amazon.com/gp/product/020172152X)&lt;/li&gt;
&lt;li&gt;Innocent Code: A Security Wake-up Call for Web Programmers (http://www.amazon.com/gp/product/0470857447)
&lt;/li&gt;
&lt;/ul&gt;</description>
		<content:encoded><![CDATA[<p>Cool&#8230;interesting site (md5.rednoize.com).</p>
<p>Speaking of web / application security, there are lots of books coving the topic. Although I haven&#8217;t read Essential PHP Security, and am sure it&#8217;s good for those of us programming in PHP (and other languages), I&#8217;d recommend these security-oriented (more &#8220;general purpose&#8221; or &#8220;programming-language-independent&#8221;, perhaps?) books:</p>
<p>
<ul></p>
<li>Building Secure Software (<a href="http://www.amazon.com/gp/product/020172152X" rel="nofollow">http://www.amazon.com/gp/product/020172152X</a>)</li>
<p></p>
<li>Innocent Code: A Security Wake-up Call for Web Programmers (<a href="http://www.amazon.com/gp/product/0470857447" rel="nofollow">http://www.amazon.com/gp/product/0470857447</a>)
</li>
<p>
</ul></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Ramsey</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2751</link>
		<dc:creator>Ben Ramsey</dc:creator>
		<pubDate>Sat, 29 Oct 2005 02:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2751</guid>
		<description>That&#039;s odd. I see what you&#039;re talking about; however, it only appears to occur if the input field still has the focus when you click on the button. Otherwise, it works just fine. The onblur event on the field works, and the onclick event on the button works (so long as the field doesn&#039;t have the focus). I&#039;ll have to see what I can figure out.

As for the code, you&#039;re looking at the wrong source code. A browser&#039;s XMLHttpRequest object won&#039;t fetch a file from a domain other than that of the parent resource. This is for obvious security reasons. Thus, I&#039;m requesting the md5.php script on my own site, which, in turn, makes a request to your XML interface.

The source code I&#039;m referring to is available here:
http://benramsey.com/code/source.php?file=md5/md5.php</description>
		<content:encoded><![CDATA[<p>That&#8217;s odd. I see what you&#8217;re talking about; however, it only appears to occur if the input field still has the focus when you click on the button. Otherwise, it works just fine. The onblur event on the field works, and the onclick event on the button works (so long as the field doesn&#8217;t have the focus). I&#8217;ll have to see what I can figure out.</p>
<p>As for the code, you&#8217;re looking at the wrong source code. A browser&#8217;s XMLHttpRequest object won&#8217;t fetch a file from a domain other than that of the parent resource. This is for obvious security reasons. Thus, I&#8217;m requesting the md5.php script on my own site, which, in turn, makes a request to your XML interface.</p>
<p>The source code I&#8217;m referring to is available here:<br />
<a href="http://benramsey.com/code/source.php?file=md5/md5.php" rel="nofollow">http://benramsey.com/code/source.php?file=md5/md5.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: puRe</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2750</link>
		<dc:creator>puRe</dc:creator>
		<pubDate>Fri, 28 Oct 2005 23:53:40 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2750</guid>
		<description>Okay, here&#039;s the procedure:
1. Open http://benramsey.com/code/md5/ in firefox 1.07
2. Enter &quot;555&quot; into the Hash to reverse input field.
3. Press the button &quot;Reverse Hash&quot;
4. Result: A javascript error: response has no properties
Sourcefile: http://benramsey.com/code/md5/
Line: 41

The two lines are:
&quot;var response = request.responseXML;
var root     = response.documentElement;&quot;

But dont ask me whats wrong ;)

And no, you dont use the XML interface of http://md5.rednoize.com. At least what i see in the code:
request.open(&#039;get&#039;, &#039;md5.php?q=&#039; + escape(md5));

to use the xml interface use
request.open(&#039;get&#039;, &#039;md5.php?xml&amp;q=&#039; + escape(md5));
and change the way the response is parsed. This would make your whole thing faster.

Anyway, thanks for your intrest in my site. i am quite happy that it gets so much attention (what i never expected)</description>
		<content:encoded><![CDATA[<p>Okay, here&#8217;s the procedure:<br />
1. Open <a href="http://benramsey.com/code/md5/" rel="nofollow">http://benramsey.com/code/md5/</a> in firefox 1.07<br />
2. Enter &#8220;555&#8221; into the Hash to reverse input field.<br />
3. Press the button &#8220;Reverse Hash&#8221;<br />
4. Result: A javascript error: response has no properties<br />
Sourcefile: <a href="http://benramsey.com/code/md5/" rel="nofollow">http://benramsey.com/code/md5/</a><br />
Line: 41</p>
<p>The two lines are:<br />
&#8220;var response = request.responseXML;<br />
var root     = response.documentElement;&#8221;</p>
<p>But dont ask me whats wrong <img src='http://benramsey.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>And no, you dont use the XML interface of <a href="http://md5.rednoize.com" rel="nofollow">http://md5.rednoize.com</a>. At least what i see in the code:<br />
request.open(&#8216;get&#8217;, &#8216;md5.php?q=&#8217; + escape(md5));</p>
<p>to use the xml interface use<br />
request.open(&#8216;get&#8217;, &#8216;md5.php?xml&#038;q=&#8217; + escape(md5));<br />
and change the way the response is parsed. This would make your whole thing faster.</p>
<p>Anyway, thanks for your intrest in my site. i am quite happy that it gets so much attention (what i never expected)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Ramsey</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2748</link>
		<dc:creator>Ben Ramsey</dc:creator>
		<pubDate>Fri, 28 Oct 2005 13:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2748</guid>
		<description>I am using the XML interface, actually. You can take a look at my code to see what I&#039;m doing; the source is right there.

As for point #2, I&#039;ve fixed this. I was using &lt;code&gt;ctype_alnum()&lt;/code&gt; to filter responses, and this clearly doesn&#039;t work when it comes to spaces, etc.

And I&#039;m not sure what you mean by &quot;buggy on firefox&quot; and &quot;response has no properties.&quot; All I ever use is Firefox, and I&#039;m not seeing the problems you speak of.</description>
		<content:encoded><![CDATA[<p>I am using the XML interface, actually. You can take a look at my code to see what I&#8217;m doing; the source is right there.</p>
<p>As for point #2, I&#8217;ve fixed this. I was using <code>ctype_alnum()</code> to filter responses, and this clearly doesn&#8217;t work when it comes to spaces, etc.</p>
<p>And I&#8217;m not sure what you mean by &#8220;buggy on firefox&#8221; and &#8220;response has no properties.&#8221; All I ever use is Firefox, and I&#8217;m not seeing the problems you speak of.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: puRe</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2747</link>
		<dc:creator>puRe</dc:creator>
		<pubDate>Fri, 28 Oct 2005 11:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2747</guid>
		<description>Oh ... 
and you should realy use the XML interface (http://md5.rednoize.com/?xml&amp;q=6254b8c64145b9493d470cd08ddbceaa)
or the plain text interface (http://md5.rednoize.com/?p&amp;q=6254b8c64145b9493d470cd08ddbceaa)</description>
		<content:encoded><![CDATA[<p>Oh &#8230; <br />
and you should realy use the XML interface (<a href="http://md5.rednoize.com/?xml&#038;q=6254b8c64145b9493d470cd08ddbceaa" rel="nofollow">http://md5.rednoize.com/?xml&#038;q=6254b8c64145b9493d470cd08ddbceaa</a>)<br />
or the plain text interface (<a href="http://md5.rednoize.com/?p&#038;q=6254b8c64145b9493d470cd08ddbceaa" rel="nofollow">http://md5.rednoize.com/?p&#038;q=6254b8c64145b9493d470cd08ddbceaa</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: puRe</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2746</link>
		<dc:creator>puRe</dc:creator>
		<pubDate>Fri, 28 Oct 2005 10:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2746</guid>
		<description>Hi

Did Chris Shiflett really mention my site in his book ?
If so, amazing .. have to buy this one ;)

I am realy not impressed of your AJAX Md5 thing.
1. - its buggy on firefox (response has no properties - http://benramsey.com/code/md5/ : 41)
2. - its not working very well at all.
i entered &quot;6254b8c64145b9493d470cd08ddbceaa&quot;, it has not found the value although its in my database (http://md5.rednoize.com/?q=902c964b0e03c9fd2112655fa647640b).

Greets
Marcel Oelke
http://puRe.rednoize.com/</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Did Chris Shiflett really mention my site in his book ?<br />
If so, amazing .. have to buy this one <img src='http://benramsey.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I am realy not impressed of your AJAX Md5 thing.<br />
1. &#8211; its buggy on firefox (response has no properties &#8211; <a href="http://benramsey.com/code/md5/" rel="nofollow">http://benramsey.com/code/md5/</a> : 41)<br />
2. &#8211; its not working very well at all.<br />
i entered &#8220;6254b8c64145b9493d470cd08ddbceaa&#8221;, it has not found the value although its in my database (<a href="http://md5.rednoize.com/?q=902c964b0e03c9fd2112655fa647640b" rel="nofollow">http://md5.rednoize.com/?q=902c964b0e03c9fd2112655fa647640b</a>).</p>
<p>Greets<br />
Marcel Oelke<br />
<a href="http://puRe.rednoize.com/" rel="nofollow">http://puRe.rednoize.com/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Shiflett</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2745</link>
		<dc:creator>Chris Shiflett</dc:creator>
		<pubDate>Fri, 28 Oct 2005 06:37:53 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2745</guid>
		<description>Glad to hear you liked the book! :-)</description>
		<content:encoded><![CDATA[<p>Glad to hear you liked the book! <img src='http://benramsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://benramsey.com/archives/essential-php-security-and-md5-reversing/comment-page-1/#comment-2744</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Thu, 27 Oct 2005 18:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://benramsey.com/?p=126#comment-2744</guid>
		<description>glad to see that you are back on writing about PHP security ...</description>
		<content:encoded><![CDATA[<p>glad to see that you are back on writing about PHP security &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
