<?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: Cross-site scripting ( xss ) attack by example and prevention in PHP</title>
	<atom:link href="http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Sun, 14 Mar 2010 01:15:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sdsa</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-4632</link>
		<dc:creator>sdsa</dc:creator>
		<pubDate>Tue, 29 Sep 2009 05:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-4632</guid>
		<description>Hi Michael, very gud job, keep it up! </description>
		<content:encoded><![CDATA[<p>Hi Michael, very gud job, keep it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Portfolio blog &#187; Blog Archive &#187; urgently upgrade your wordpress</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-4240</link>
		<dc:creator>Portfolio blog &#187; Blog Archive &#187; urgently upgrade your wordpress</dc:creator>
		<pubDate>Thu, 23 Jul 2009 05:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-4240</guid>
		<description>[...] and if you&#8217;re running a Wordpress powered blog then upgrade it to version 2.6.5. It is a XSS exploit discovered in the 2.6.5 [...]</description>
		<content:encoded><![CDATA[<p>[...] and if you&#8217;re running a Wordpress powered blog then upgrade it to version 2.6.5. It is a XSS exploit discovered in the 2.6.5 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-4203</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Sun, 12 Jul 2009 01:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-4203</guid>
		<description>Approve me XD </description>
		<content:encoded><![CDATA[<p>Approve me XD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-4202</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Sun, 12 Jul 2009 01:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-4202</guid>
		<description>Nice job on article </description>
		<content:encoded><![CDATA[<p>Nice job on article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi Chamria</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-4138</link>
		<dc:creator>Ravi Chamria</dc:creator>
		<pubDate>Mon, 22 Jun 2009 15:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-4138</guid>
		<description>Do not completely trust Web sites that use HTTPS (Secure Sockets Layer) when it comes to XSS; HTTPS ensures secure connections, but processing of the data entered by the user is internal to the application. If the application has XSS holes, the attacker may send a malicious script that can still be executed by the application and lead to XSS intrusions.</description>
		<content:encoded><![CDATA[<p>Do not completely trust Web sites that use HTTPS (Secure Sockets Layer) when it comes to XSS; HTTPS ensures secure connections, but processing of the data entered by the user is internal to the application. If the application has XSS holes, the attacker may send a malicious script that can still be executed by the application and lead to XSS intrusions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urgently upgrade your wordpress to version 2.6.5</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-3223</link>
		<dc:creator>Urgently upgrade your wordpress to version 2.6.5</dc:creator>
		<pubDate>Wed, 26 Nov 2008 10:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-3223</guid>
		<description>[...] and if you&#8217;re running a Wordpress powered blog then upgrade it to version 2.6.5. It is a XSS exploit discovered in the 2.6.5 [...]</description>
		<content:encoded><![CDATA[<p>[...] and if you&#8217;re running a Wordpress powered blog then upgrade it to version 2.6.5. It is a XSS exploit discovered in the 2.6.5 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Useful functions to tighten the PHP security</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-976</link>
		<dc:creator>Useful functions to tighten the PHP security</dc:creator>
		<pubDate>Sat, 24 May 2008 18:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-976</guid>
		<description>[...] which is very handy for preventing your website from various attacks like SQL Injection Attack , XSS attack etc.Let&#8217;s check few useful functions available in PHP to tighten the security in your [...]</description>
		<content:encoded><![CDATA[<p>[...] which is very handy for preventing your website from various attacks like SQL Injection Attack , XSS attack etc.Let&#8217;s check few useful functions available in PHP to tighten the security in your [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-887</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Fri, 16 May 2008 23:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-887</guid>
		<description>Hi Michael, very gud job, keep it up! </description>
		<content:encoded><![CDATA[<p>Hi Michael, very gud job, keep it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Secure security &#187; Blog Archive &#187; Quick PHP Form Validator</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-782</link>
		<dc:creator>Secure security &#187; Blog Archive &#187; Quick PHP Form Validator</dc:creator>
		<pubDate>Sun, 04 May 2008 23:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-782</guid>
		<description>[...] http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html" rel="nofollow">http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roshan</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-697</link>
		<dc:creator>Roshan</dc:creator>
		<pubDate>Thu, 24 Apr 2008 15:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-697</guid>
		<description>I absolutely agree wiht you safiq...</description>
		<content:encoded><![CDATA[<p>I absolutely agree wiht you safiq&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zend Certified Engineer</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-694</link>
		<dc:creator>Zend Certified Engineer</dc:creator>
		<pubDate>Thu, 24 Apr 2008 12:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-694</guid>
		<description>White list input filtering is recommended in order to avoid cross site scripting.

Every php developer should never trust the user provided data even if it is from cookie, drop down list or hidden form fields.

We should always check the script tag in user input data too which is more dangerous in this context.</description>
		<content:encoded><![CDATA[<p>White list input filtering is recommended in order to avoid cross site scripting.</p>
<p>Every php developer should never trust the user provided data even if it is from cookie, drop down list or hidden form fields.</p>
<p>We should always check the script tag in user input data too which is more dangerous in this context.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: will</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-77</link>
		<dc:creator>will</dc:creator>
		<pubDate>Tue, 15 Jan 2008 14:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-77</guid>
		<description>XSS can also occur by hiding html within html.
php&#039;s strip_tags won&#039;t catch it.

Aside from that, javascript validations are handy, but can only take your site so far. Javascript has very little unicode support, so it may not be the best tool for multi-lingual sites.

People that use browsers like Lynx or Netscape 4 (i know .... REALLY old), may not have have javascript running or a very old version of javascript running which may cause validations to not run.

XSS Prevention should occur at the server level no matter what, when processing or storing input. In the event a browser dependency fails (in this case javascript), it becomes possible for the attacker to slip data in as they see fit. 

OSCommerce.org has an article in its documentation regarding XSS Prevention which highlights the key points of prevention fairly well.</description>
		<content:encoded><![CDATA[<p>XSS can also occur by hiding html within html.<br />
php&#8217;s strip_tags won&#8217;t catch it.</p>
<p>Aside from that, javascript validations are handy, but can only take your site so far. Javascript has very little unicode support, so it may not be the best tool for multi-lingual sites.</p>
<p>People that use browsers like Lynx or Netscape 4 (i know &#8230;. REALLY old), may not have have javascript running or a very old version of javascript running which may cause validations to not run.</p>
<p>XSS Prevention should occur at the server level no matter what, when processing or storing input. In the event a browser dependency fails (in this case javascript), it becomes possible for the attacker to slip data in as they see fit. </p>
<p>OSCommerce.org has an article in its documentation regarding XSS Prevention which highlights the key points of prevention fairly well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://roshanbh.com.np/2007/12/cross-site-scripting-xss-attack-by-example-and-prevention-in-php.html/comment-page-1#comment-49</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Tue, 08 Jan 2008 21:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/cross-site-scripting-xss-attack-by-example-and-prevention-in-php/#comment-49</guid>
		<description>Thanks for this excellent article.  I had heard about these attacks, but it was quite vague to me, and I had no idea how easy it was.  Just underlines the importance of data validation on web forms.  Thanks for the eye opener!

BTW.  Your site has some pretty informative articles.  Keep up the good work.  I&#039;ll drop by from time to time.</description>
		<content:encoded><![CDATA[<p>Thanks for this excellent article.  I had heard about these attacks, but it was quite vague to me, and I had no idea how easy it was.  Just underlines the importance of data validation on web forms.  Thanks for the eye opener!</p>
<p>BTW.  Your site has some pretty informative articles.  Keep up the good work.  I&#8217;ll drop by from time to time.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
