<?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: Email injection exploit through a PHP contact form</title>
	<atom:link href="http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/</link>
	<description>It&#039;s Just Links</description>
	<lastBuildDate>Thu, 22 Jul 2010 05:14:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: DrTebi</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-32205</link>
		<dc:creator>DrTebi</dc:creator>
		<pubDate>Mon, 01 Oct 2007 22:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-32205</guid>
		<description>I know this article is a bit outdated, but for those checking it out and running PHP 5 &gt;= 5.2.0, check out the Filter Functions:
http://us3.php.net/filter</description>
		<content:encoded><![CDATA[<p>I know this article is a bit outdated, but for those checking it out and running PHP 5 &gt;= 5.2.0, check out the Filter Functions:<br />
<a href="http://us3.php.net/filter">http://us3.php.net/filter</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chik</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-27741</link>
		<dc:creator>Chik</dc:creator>
		<pubDate>Thu, 30 Aug 2007 18:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-27741</guid>
		<description>Thanks... but I&#039;m not experienced enough with php to know how to implement these suggestions safely. Can anyone recommend a solid script that I can buy which will protect against injection?</description>
		<content:encoded><![CDATA[<p>Thanks&#8230; but I&#8217;m not experienced enough with php to know how to implement these suggestions safely. Can anyone recommend a solid script that I can buy which will protect against injection?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-21219</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 28 Jun 2007 21:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-21219</guid>
		<description>what about limiting the form field I mean a simple 15 letter limitation should basicly limit most of the problem</description>
		<content:encoded><![CDATA[<p>what about limiting the form field I mean a simple 15 letter limitation should basicly limit most of the problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-19407</link>
		<dc:creator>will</dc:creator>
		<pubDate>Thu, 21 Jun 2007 07:29:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-19407</guid>
		<description>Hi. I used your code in my site and it works fine except for cc: . When I tested out cc: in my contact form it always gives me a 406 error, with any of the other situations such as to:, it works as expected and it leads through to my own planned response (please re-enter your e-mail without dangerous, possibly spam causing strings such as to:). any ideas?</description>
		<content:encoded><![CDATA[<p>Hi. I used your code in my site and it works fine except for cc: . When I tested out cc: in my contact form it always gives me a 406 error, with any of the other situations such as to:, it works as expected and it leads through to my own planned response (please re-enter your e-mail without dangerous, possibly spam causing strings such as to:). any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jean</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-482</link>
		<dc:creator>jean</dc:creator>
		<pubDate>Mon, 20 Nov 2006 09:26:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-482</guid>
		<description>I tested a form using the hex characters and succeeded in sending additional copies of mail in this fashion.
The body of the message is not necessarily secure - I added %0a%0dcc:name@domain.com at the very end of a message and succeeded in sending a message.
I decided to remove &#039;:&#039;s and replace @ with .AT. for a nervous client in addition to checking for \r, \n, etc. etc. and so far it is holding up very well.

</description>
		<content:encoded><![CDATA[<p>I tested a form using the hex characters and succeeded in sending additional copies of mail in this fashion.<br />
The body of the message is not necessarily secure &#8211; I added %0a%0dcc:name@domain.com at the very end of a message and succeeded in sending a message.<br />
I decided to remove &#8216;:&#8217;s and replace @ with .AT. for a nervous client in addition to checking for \r, \n, etc. etc. and so far it is holding up very well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MB</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-481</link>
		<dc:creator>MB</dc:creator>
		<pubDate>Fri, 15 Sep 2006 07:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-481</guid>
		<description>Why not just use the filter solution used in the SecurePHP article? First, urldecode the field, then eregi for \r or \n. If either is present, then deny. Won&#039;t this catch any hack attempt to added header fields?</description>
		<content:encoded><![CDATA[<p>Why not just use the filter solution used in the SecurePHP article? First, urldecode the field, then eregi for \r or \n. If either is present, then deny. Won&#8217;t this catch any hack attempt to added header fields?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steffen</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-480</link>
		<dc:creator>Steffen</dc:creator>
		<pubDate>Sat, 19 Aug 2006 11:27:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-480</guid>
		<description>i hae to hack a homepage coz they deleted our and i dont know how i can hack there homepage... i need help :P  when you see this mail , i try to hack the page but im sure it wont work ^^  ... www.ts-gamers.de.ki and www.ts-gamers.de.vu  hack these homepages pls ... THANK YOU</description>
		<content:encoded><![CDATA[<p>i hae to hack a homepage coz they deleted our and i dont know how i can hack there homepage&#8230; i need help <img src='http://www.tonyspencer.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />   when you see this mail , i try to hack the page but im sure it wont work ^^  &#8230; <a href="http://www.ts-gamers.de.ki">http://www.ts-gamers.de.ki</a> and <a href="http://www.ts-gamers.de.vu">http://www.ts-gamers.de.vu</a>  hack these homepages pls &#8230; THANK YOU</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kat</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-479</link>
		<dc:creator>Kat</dc:creator>
		<pubDate>Thu, 25 May 2006 15:03:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-479</guid>
		<description>And if just verify that the from-field is a valid email, with the regex like this
eregi(&quot;^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$&quot;, $from)?

Thank you ;)</description>
		<content:encoded><![CDATA[<p>And if just verify that the from-field is a valid email, with the regex like this<br />
eregi(&#8220;^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$&#8221;, $from)?</p>
<p>Thank you <img src='http://www.tonyspencer.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-478</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Wed, 05 Apr 2006 04:53:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-478</guid>
		<description>The bcc: is probably redundant since cc: should cover both :)</description>
		<content:encoded><![CDATA[<p>The bcc: is probably redundant since cc: should cover both <img src='http://www.tonyspencer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo</title>
		<link>http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/comment-page-1/#comment-477</link>
		<dc:creator>Hugo</dc:creator>
		<pubDate>Tue, 07 Feb 2006 15:44:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tonyspencer.com/2005/12/15/email-injection-exploit-through-a-php-contact-form/#comment-477</guid>
		<description>Hi Tony,

have you actually tried to test whether the
0x0A injection business works?
I read the same article on damonkohler.com
and tested my own form, but as far as I can see,
neither %0A or 0x0A (or with 0x0D etc.)
actually created a newline, so the attack
wouldn&#039;t work.
Might be hosting-specific or something I don&#039;t know..</description>
		<content:encoded><![CDATA[<p>Hi Tony,</p>
<p>have you actually tried to test whether the<br />
0&#215;0A injection business works?<br />
I read the same article on damonkohler.com<br />
and tested my own form, but as far as I can see,<br />
neither %0A or 0&#215;0A (or with 0&#215;0D etc.)<br />
actually created a newline, so the attack<br />
wouldn&#8217;t work.<br />
Might be hosting-specific or something I don&#8217;t know..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
