<?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: The OWASP Top Ten and ESAPI &#8211; Part 2 &#8211; Cross Site Scripting (XSS)</title>
	<atom:link href="http://www.jtmelton.com/2009/01/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jtmelton.com/2009/01/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/</link>
	<description>Java, Security and Technology</description>
	<lastBuildDate>Mon, 04 Jan 2010 09:04:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: john</title>
		<link>http://www.jtmelton.com/2009/01/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/comment-page-1/#comment-10</link>
		<dc:creator>john</dc:creator>
		<pubDate>Wed, 18 Nov 2009 14:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtmelton.com/2009/11/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/#comment-10</guid>
		<description>Thanks Jim, updated post per your suggestions.</description>
		<content:encoded><![CDATA[<p>Thanks Jim, updated post per your suggestions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Manico</title>
		<link>http://www.jtmelton.com/2009/01/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/comment-page-1/#comment-9</link>
		<dc:creator>Jim Manico</dc:creator>
		<pubDate>Wed, 18 Nov 2009 10:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtmelton.com/2009/11/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/#comment-9</guid>
		<description>String safeOutput = ESAPI.encoder().encodeForURL( &quot;/admin/findUser.do?name=&quot; + request.getParameter( &quot;dangerousInput&quot; ) );

is a little off. The URL would actually &quot;break&quot; since ? would get encoded. I&#039;d go this route:

String safeURlToDisplay= &quot;/admin/findUser.do?name=&quot; + ESAPI.encoder().encodeForURL(request.getParameter( &quot;dangerousInput&quot;));

Of course, I&#039;d also do input validation (at least) as well.

- Jim Manico
ESAPI Project Manager</description>
		<content:encoded><![CDATA[<p>String safeOutput = ESAPI.encoder().encodeForURL( &#8220;/admin/findUser.do?name=&#8221; + request.getParameter( &#8220;dangerousInput&#8221; ) );</p>
<p>is a little off. The URL would actually &#8220;break&#8221; since ? would get encoded. I&#8217;d go this route:</p>
<p>String safeURlToDisplay= &#8220;/admin/findUser.do?name=&#8221; + ESAPI.encoder().encodeForURL(request.getParameter( &#8220;dangerousInput&#8221;));</p>
<p>Of course, I&#8217;d also do input validation (at least) as well.</p>
<p>- Jim Manico<br />
ESAPI Project Manager</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: uberVU - social comments</title>
		<link>http://www.jtmelton.com/2009/01/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/comment-page-1/#comment-8</link>
		<dc:creator>uberVU - social comments</dc:creator>
		<pubDate>Tue, 17 Nov 2009 13:20:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.jtmelton.com/2009/11/12/the-owasp-top-ten-and-esapi-part-2-cross-site-scripting-xss/#comment-8</guid>
		<description>&lt;strong&gt;Social comments and analytics for this post&lt;/strong&gt;

This post was mentioned on Twitter by securityshell: The OWASP Top Ten and ESAPI - Part 2 - Cross Site Scripting (XSS)  http://tinyurl.com/yfkgs6m</description>
		<content:encoded><![CDATA[<p><strong>Social comments and analytics for this post</strong></p>
<p>This post was mentioned on Twitter by securityshell: The OWASP Top Ten and ESAPI &#8211; Part 2 &#8211; Cross Site Scripting (XSS)  <a href="http://tinyurl.com/yfkgs6m" rel="nofollow">http://tinyurl.com/yfkgs6m</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
