<?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>Blog Central &#187; web</title>
	<atom:link href="http://blogs.mcafee.com/tag/web/feed" rel="self" type="application/rss+xml" />
	<link>http://blogs.mcafee.com</link>
	<description></description>
	<lastBuildDate>Fri, 17 May 2013 22:07:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>A Little Filtering Can Halt Some XSS Attacks</title>
		<link>http://blogs.mcafee.com/mcafee-labs/a-little-filtering-can-halt-some-xss-attacks</link>
		<comments>http://blogs.mcafee.com/mcafee-labs/a-little-filtering-can-halt-some-xss-attacks#comments</comments>
		<pubDate>Wed, 28 Jan 2009 18:56:02 +0000</pubDate>
		<dc:creator>Archive</dc:creator>
				<category><![CDATA[McAfee Labs]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.labs.com/research/blog/?p=792</guid>
		<description><![CDATA[Recently, xiaonei.com (a Chinese social-networking site, similar to Facebook) fixed a cross-site scripting (XSS) vulnerability known as &#8220;HTTP Response Splitting.&#8221; This flaw occurs when a web application does not properly filter carriage returns and linefeeds (%0d%0a). This allows an attacker to split the HTTP response header like so: HTTP/1.1 200 OK &#8221;¦ Set-Cookie: _de=a\r\n\r\n &#60;script&#62;alert(/XSS/);&#60;/script&#62;; <a href="http://blogs.mcafee.com/mcafee-labs/a-little-filtering-can-halt-some-xss-attacks">Read more...</a>]]></description>
				<content:encoded><![CDATA[<p>Recently, xiaonei.com (a Chinese social-networking site, similar to Facebook) fixed a cross-site scripting (XSS) vulnerability known as &#8220;HTTP Response Splitting.&#8221; This flaw occurs when a web application does not properly filter carriage returns and linefeeds (%0d%0a). This allows an attacker to split the HTTP response header like so:</p>
<p><code>HTTP/1.1 200 OK<br />
&rdquo;¦<br />
Set-Cookie: _de=<strong>a\r\n\r\n<br />
&lt;script&gt;alert(/XSS/);&lt;/script&gt;</strong>; domain=.xiaonei.com; expires=xxxx<br />
Set-Cookie: login_email=null; domain=.xiaonei.com; path=/; expires=xxx<br />
Content-Type: text/html;charset=UTF-8<br />
Connection: close</code></p>
<p>Please note the boldfaced section. If you have some programming background, you would know that &#8220;\r&#8221; is a carriage return (ASCII code 0x0d) and &#8220;\n&#8221; is a line feed (ASCII code 0x0a). An attacker can input %0d%0a%0d%0a in a URL. If a web application does not filter %0d%0a%0d%0a and outputs them to the HTTP response header, they will be converted to \r\n\r\n as in my boldfaced section above. Although the HTTP response header is an integrated header, it is divided by \r\n\r\n. Because \r\n\r\n represents the end of the HTTP response header, the content after it will be handled by the web browser as the content of a web page, and the attacker&#8217;s JavaScript code will run. This is an old attack method, but it can still be found in websites today.</p>
<p>The %0d%0a problem can also allow exploits in other situations. For example, it can be used to divide the T-SQL in SQL-injection attacks such as &#8220;select * from testable%0d%0aexec xp_cmdshell &#8216;command.&#8217; &#8221; It also can be used to make commented code run. For example, if you have this code in a web page:</p>
<p>&lt;script&gt;<br />
// alert($_GET["var"]);<br />
&lt;/script&gt;</p>
<p>The alert line has been commented. But when an attacker provides this to it:</p>
<p>var=%0d%0aalert(&#8216;xss&#8217;);</p>
<p>the code will become this:</p>
<p>&lt;script&gt;<br />
// alert(\r\n<br />
alert(&#8216;xss&#8217;);<br />
&lt;/script&gt;</p>
<p>And an XSS attack has been created.</p>
<p>So web programmers: Don&rsquo;t forget to filter %0d%0a in your code.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.mcafee.com/mcafee-labs/a-little-filtering-can-halt-some-xss-attacks/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Clickjacking, Part 2</title>
		<link>http://blogs.mcafee.com/mcafee-labs/clickjacking-v2</link>
		<comments>http://blogs.mcafee.com/mcafee-labs/clickjacking-v2#comments</comments>
		<pubDate>Mon, 03 Nov 2008 18:20:38 +0000</pubDate>
		<dc:creator>Archive</dc:creator>
				<category><![CDATA[McAfee Labs]]></category>
		<category><![CDATA[clickjacking]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.labs.com/research/blog/?p=736</guid>
		<description><![CDATA[Two weeks ago, I wrote a blog about &#8220;clickjacking,&#8221; the method of using invisible links to malicious web sites. Users click on what appear to be legitimate buttons, for example, but are actually taken to sites they can&#8217;t see. I think clickjacking will be combined with other vulnerabilities to attack users, who will be unaware <a href="http://blogs.mcafee.com/mcafee-labs/clickjacking-v2">Read more...</a>]]></description>
				<content:encoded><![CDATA[<p>Two weeks ago, I wrote a blog about &#8220;clickjacking,&#8221; the method of using invisible links to malicious web sites. Users click on what appear to be legitimate buttons, for example, but are actually taken to sites they can&#8217;t see. I think clickjacking will be combined with other vulnerabilities to attack users, who will be unaware that they are at risk. Protecting users from this attack vector is very important.</p>
<p>I have some advice for how you can protect yourselves from this new threat. For Firefox users, I suggest the latest version of the NoScript add-on for Firefox 3. You can find it <a href="http://noscript.net/">here.</a> For IE users, unfortunately, I haven&rsquo;t found a patch. But I can recommend a good <a href="http://hackademix.net/2008/09/29/clickjacking-and-other-browsers-ie-safari-chrome-opera/">article</a> that talks about clickjacking in multiple web browsers. You&#8217;ll find advice on what you can do with IE, Safari, Chrome, and Opera. Some web browsers allow users to disable the IFRAME element, but that will affect normal functions because some sites use IFRAME. You&#8217;ll need to take care if you are not using Firefox and NoScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.mcafee.com/mcafee-labs/clickjacking-v2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clickjacking</title>
		<link>http://blogs.mcafee.com/mcafee-labs/clickjacking</link>
		<comments>http://blogs.mcafee.com/mcafee-labs/clickjacking#comments</comments>
		<pubDate>Wed, 15 Oct 2008 13:11:05 +0000</pubDate>
		<dc:creator>Archive</dc:creator>
				<category><![CDATA[McAfee Labs]]></category>
		<category><![CDATA[clickjacking]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.labs.com/research/blog/?p=729</guid>
		<description><![CDATA[[This entry was updated on November 3.] Lately, the topic of &#8220;clickjacking&#8221; has gained popularity in discussions on the Internet. It is a new type of web attack. I decided to find out what it&#8217;s all about. I found an online video from OWASP NYC AppSec 2008 here. In the video, Jeremiah Grossman and Robert <a href="http://blogs.mcafee.com/mcafee-labs/clickjacking">Read more...</a>]]></description>
				<content:encoded><![CDATA[<p>[This entry was <a href="http://www.labs.com/research/blog/index.php/2008/11/03/clickjacking-v2/">updated on November 3.]</a></p>
<p>Lately, the topic of &#8220;clickjacking&#8221; has gained popularity in discussions on the Internet. It is a new type of web attack. I decided to find out what it&rsquo;s all about.</p>
<p>I found an online video from OWASP NYC AppSec 2008 <a href="http://video.google.com/videoplay?docid=-1023253423246814538&amp;hl=en">here.</a> In the video, Jeremiah Grossman and Robert &#8220;RSnake&#8221; Hansen reported this new vulnerability in a presentation titled &ldquo;New Zero-Day Browser Exploits-&ndash;ClickJacking.&rdquo; I also found a demo of this attack <a href="http://www.planb-security.net/notclickjacking/iframetrick.html#really">here.</a></p>
<p>In the videos they describe only parts of the vulnerability, but we can learn enough to gain a basic idea of what clickjacking is.</p>
<p>To explain, I&#8217;ll use an example. You have a web page A controlled by an attacker. A contains an  IFRAME element B. In a clickjack attack, B would be set to transparent and the z-index property of the layer set to higher than other elements of page A via cross-site scripting. The area of B will also need to be so big that the user can easily click its content. The attacker places a button in B that leads to any action he wants. Then the attacker places some buttons on page A that will attract users. The location of the buttons in B must match the buttons in A so when users appear to click a button on page A, they are actually clicking the button in B because the z-index property of B&rsquo;s buttons are higher than A&rsquo;s buttons. This attack uses DHTML and does not require JavaScript, so disabling JavaScript will not help.</p>
<p>This vulnerability affects multiple web browsers. Unfortunately, no patch for it is currently available, so users should be careful. The vulnerability has also been found to affect Adobe Flash Player, the most popular rich-media Internet application today. Adobe has released a security advisory and provided a <a href="http://www.adobe.com/support/security/advisories/apsa08-08.html">workaround.</a></p>
<p>We will continue to watch for new information about this vulnerability.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogs.mcafee.com/mcafee-labs/clickjacking/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
