<?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: Clean your HTML inputs or the dog-eaters will get to you</title>
	<atom:link href="http://gojko.net/2008/06/23/clean-your-html-inputs-or-the-dog-eaters-will-get-to-you/feed/" rel="self" type="application/rss+xml" />
	<link>http://gojko.net/2008/06/23/clean-your-html-inputs-or-the-dog-eaters-will-get-to-you/</link>
	<description>Building software that matters</description>
	<lastBuildDate>Fri, 18 May 2012 13:40:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mark</title>
		<link>http://gojko.net/2008/06/23/clean-your-html-inputs-or-the-dog-eaters-will-get-to-you/comment-page-1/#comment-28985</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 25 Jun 2008 19:56:21 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=142#comment-28985</guid>
		<description>...oops, meant to say FP precision LOSS, and date/time formatting issues (like between databases vs C locales vs system settings, etc)</description>
		<content:encoded><![CDATA[<p>&#8230;oops, meant to say FP precision LOSS, and date/time formatting issues (like between databases vs C locales vs system settings, etc)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://gojko.net/2008/06/23/clean-your-html-inputs-or-the-dog-eaters-will-get-to-you/comment-page-1/#comment-28984</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 25 Jun 2008 19:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=142#comment-28984</guid>
		<description>The *REAL* problem is that you should never let users augment your source code. Sounds pretty basic, but of course people slip up all the time.

In the case of SQL-insertion attacks, santizing the data is one approach - but it&#039;s tedious and error prone, and often leaks back to the user (&quot;sorry Mr O&#039;Darn, but quotes are not allowed!&quot;). A far better approach is to use parameter markers in the SQL (&quot;update table set name = ? where key = ?&quot;) and then the entire issue goes away. As does floating-point precision. And date/time formatting. And performance goes up! (except possibly in Java, but that says more about Java than about SQL).

Problem is, there&#039;s really no way to do this &#039;right&#039; with HTML! For this reason, I think HTML is fundamentally flawed - there&#039;s no systemic way to do it right which would solve it once and for all; the best you can do is keep patching system after system for exploit after exploit ad infinitum.</description>
		<content:encoded><![CDATA[<p>The *REAL* problem is that you should never let users augment your source code. Sounds pretty basic, but of course people slip up all the time.</p>
<p>In the case of SQL-insertion attacks, santizing the data is one approach &#8211; but it&#8217;s tedious and error prone, and often leaks back to the user (&#8220;sorry Mr O&#8217;Darn, but quotes are not allowed!&#8221;). A far better approach is to use parameter markers in the SQL (&#8220;update table set name = ? where key = ?&#8221;) and then the entire issue goes away. As does floating-point precision. And date/time formatting. And performance goes up! (except possibly in Java, but that says more about Java than about SQL).</p>
<p>Problem is, there&#8217;s really no way to do this &#8216;right&#8217; with HTML! For this reason, I think HTML is fundamentally flawed &#8211; there&#8217;s no systemic way to do it right which would solve it once and for all; the best you can do is keep patching system after system for exploit after exploit ad infinitum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://gojko.net/2008/06/23/clean-your-html-inputs-or-the-dog-eaters-will-get-to-you/comment-page-1/#comment-28905</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 24 Jun 2008 09:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://gojko.net/?p=142#comment-28905</guid>
		<description>Blimey, there&#039;s an eye-opener.

I always sanitise input that actually does anything, but I&#039;m not sure if I have been careful enough sanitising input that could be abused in the same way as you described.

Thanks</description>
		<content:encoded><![CDATA[<p>Blimey, there&#8217;s an eye-opener.</p>
<p>I always sanitise input that actually does anything, but I&#8217;m not sure if I have been careful enough sanitising input that could be abused in the same way as you described.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

