<?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>trickeries! &#187; xss</title>
	<atom:link href="http://trickeries.com/tag/xss/feed/" rel="self" type="application/rss+xml" />
	<link>http://trickeries.com</link>
	<description>it's tricky to rock a style thats liked online</description>
	<lastBuildDate>Tue, 02 Mar 2010 06:01:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>codeigniter, xss cleaning, and form output</title>
		<link>http://trickeries.com/391/codeigniter-xss-cleaning-and-form-output/</link>
		<comments>http://trickeries.com/391/codeigniter-xss-cleaning-and-form-output/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 01:50:42 +0000</pubDate>
		<dc:creator>atom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CodeIgniter]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://trickeries.com/?p=391</guid>
		<description><![CDATA[If you are a codeigniter user please use caution when outputting any user input into your views, even after it has been passed through xss_clean, or you have global xss filtering on.  This will not prepare output for form field use.  In order to safely output user input in a form field, you [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a codeigniter user please use caution when outputting any user input into your views, even after it has been passed through xss_clean, or you have global xss filtering on.  This <strong>will not</strong> prepare output for form field use.  In order to safely output user input in a form field, you will need to load the form helper class as well and use the form_prep() function.  The form_prep function is not available in the input class.</p>
<p>This is something I have discussed with the codeigniter developers, and they do not feel it is necessary to change:</p>
<blockquote cite="Derek Jones, CTO EllisLab, Inc."><p>&#8220;All global_xss_filtering does is run the Input::xss_clean() filter on user input for you automatically.  It does not make assumptions about where or how that data will be used, and it would be improper to always format the content as needed for use in a form field.&#8221;</p></blockquote>
<p>I do not feel that it is adequately documented that you need to make further alterations to input after the xss_clean, especially when it includes loading a helper file.  This is not mentioned in the documentation for the <a href="http://codeigniter.com/user_guide/libraries/input.html">input class</a>.</p>
<p>At first I thought I was making undue assumptions, but a few quick injection attempts on other codeigniter run sites / projects, I realize that I am not the only one assuming.</p>
]]></content:encoded>
			<wfw:commentRss>http://trickeries.com/391/codeigniter-xss-cleaning-and-form-output/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Don&#8217;t fool yourself when cleaning input, Javascript is sneaky as hell.</title>
		<link>http://trickeries.com/98/dont-fool-yourself-when-cleaning-input-javascript-is-sneaky-as-hell/</link>
		<comments>http://trickeries.com/98/dont-fool-yourself-when-cleaning-input-javascript-is-sneaky-as-hell/#comments</comments>
		<pubDate>Sun, 04 May 2008 07:30:54 +0000</pubDate>
		<dc:creator>atom</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[NoScript]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://trickeries.com/?p=98</guid>
		<description><![CDATA[User input must never be trusted.  It is impossible to emphasize this enough.  Please excuse me if I get emotional, it is a sensitive subject for me.

All web developers worth anything know this, but very often even the most experienced developer makes assumptions or simple mistakes that leave a dirty little hole which [...]]]></description>
			<content:encoded><![CDATA[<h3>User input must never be trusted.  It is impossible to <em title="this is here for you kremey">emphasize</em> this enough.  Please excuse me if I get emotional, it is a sensitive subject for me.</h3>
<hr/>
<p>All web developers worth anything know this, but very often even the most experienced developer makes assumptions or simple mistakes that leave a dirty little hole which is ripe for pillaging.</p>
<p>I recently found a hole in an application which was caused by lazy / inadequate / ill-conceived input cleansing.  The developers have been notified and will surely correct the problem shortly.  I will release more detail regarding this when the issue has been resolved and a fix is in place.  Of course, if you are a trusted dot-comrade I can fill you in before hand as requested. For everyone else, check out:</p>
<ul>
<li>
<a href="http://www.owasp.org/index.php/SpoC_007_-_OWASP_The_Anti-Samy_Project" title="The Anti-Samy Project">The Anti-Samy Project</a>
</li>
<li>
<a href="http://ckers.org/xss.html" title="The ha.ckers.org XSS (Cross Site Scripting) Cheat Sheet - Esp: for filter evasion">The ha.ckers.org XSS (Cross Site Scripting) Cheat Sheet &#8211; Esp: for filter evasion</a>
</li>
<li>
Join the paranoid with <a href="http://noscript.net/" title="Join the paranoid - No Script">NoScript</a>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://trickeries.com/98/dont-fool-yourself-when-cleaning-input-javascript-is-sneaky-as-hell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
