<?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/"
><channel><title>indeedle &#187; sanatise</title> <atom:link href="http://indeedle.com/tags/sanatise/feed/" rel="self" type="application/rss+xml" /><link>http://indeedle.com</link> <description>blogging the indeedle way</description> <lastBuildDate>Tue, 27 Jul 2010 02:41:06 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Trust Nobody</title><link>http://indeedle.com/blog/2010/01/16/trust-nobody/</link> <comments>http://indeedle.com/blog/2010/01/16/trust-nobody/#comments</comments> <pubDate>Sat, 16 Jan 2010 04:22:38 +0000</pubDate> <dc:creator>Cody</dc:creator> <category><![CDATA[PHP]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[development]]></category> <category><![CDATA[sanatise]]></category> <category><![CDATA[xkcd]]></category><guid isPermaLink="false">http://indeedle.com/?p=71</guid> <description><![CDATA[One important lesson when developing applications (I&#8217;m focusing on websites here, but this applies to all types of applications) is to ditch user trust. In a nut shell, do not trust any input you receive from a user. Seriously, do not assume it is clean and good, treat all user input (whether it be cookies, [...]]]></description> <content:encoded><![CDATA[<p>One important lesson when developing applications (I&#8217;m focusing on websites here, but this applies to all types of applications) is to ditch user trust.</p><p>In a nut shell, <strong>do not trust any input you receive from a user</strong>. Seriously, do not assume it is clean and good, treat all user input (whether it be cookies, text from a text box or something else) as potentially dangerous. Check it, filter it, escape it.</p><p>Never let input from a user go straight into your database or on to a page without it being filtered. If you let it straight into the database you leave yourself open to SQL Injections and other attacks.</p><div class="wp-caption aligncenter" style="width: 543px"><a href="http://imgs.xkcd.com/comics/exploits_of_a_mom.png" rel="lightbox[71]"><img class=" " title="xkcd - Exploits of a Mom" src="http://imgs.xkcd.com/comics/exploits_of_a_mom.png" alt="" width="533" height="164" /></a><p class="wp-caption-text">This is why you should clean up all input. (Click for bigger version)</p></div><p>Keep that in mind when you are developing an application, any and all user input needs to be checked out, torn to pieces, ripped apart, put back together before being considered safe.</p><hr /><p><small>© 2008 - 2010 for <a href="http://indeedle.com">indeedle</a>. All rights are reserved. | For more information please visit <a href="http://indeedle.com">indeedle</a>. | <a href="http://indeedle.com/blog/2010/01/16/trust-nobody/">Permalink</a>.</p>]]></content:encoded> <wfw:commentRss>http://indeedle.com/blog/2010/01/16/trust-nobody/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>