<?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"
	>
<channel>
	<title>Comments on: Inline UTF-7 E4X javascript hijacking</title>
	<atom:link href="http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/</link>
	<description>A tool for designers dealing with programmers dealing with designers...</description>
	<pubDate>Fri, 12 Mar 2010 05:05:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1705</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Tue, 02 Mar 2010 22:00:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1705</guid>
		<description>@Eli

Interesting the E4X spec says this shouldn't be possible, have you got a POC? 

Anyway it's possible to get the rest of the doc using setTimeout and assigning the remaining HTML to a E4X variable</description>
		<content:encoded><![CDATA[<p>@Eli</p>
<p>Interesting the E4X spec says this shouldn&#8217;t be possible, have you got a POC? </p>
<p>Anyway it&#8217;s possible to get the rest of the doc using setTimeout and assigning the remaining HTML to a E4X variable</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eli Grey</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1704</link>
		<dc:creator>Eli Grey</dc:creator>
		<pubDate>Tue, 02 Mar 2010 21:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1704</guid>
		<description>You can hijack the rest of the XML by defining a setter on XML.prototype. Then you could do xml.function::hijack = rest-of-the-xml.</description>
		<content:encoded><![CDATA[<p>You can hijack the rest of the XML by defining a setter on XML.prototype. Then you could do xml.function::hijack = rest-of-the-xml.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1682</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Wed, 13 Jan 2010 13:39:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1682</guid>
		<description>@Chris

Hey Chris, fixed the XML it was because I used a code formatter plugin and now that I removed it (because it was vulnerable =) ) the raw XML data displayed.

I sent you a email about e4x</description>
		<content:encoded><![CDATA[<p>@Chris</p>
<p>Hey Chris, fixed the XML it was because I used a code formatter plugin and now that I removed it (because it was vulnerable =) ) the raw XML data displayed.</p>
<p>I sent you a email about e4x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Evans</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1679</link>
		<dc:creator>Chris Evans</dc:creator>
		<pubDate>Wed, 13 Jan 2010 01:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1679</guid>
		<description>Nice!! I only just saw this, for some reason. Great attack.

Google Chrome (or more accurately, v8) doesn't have E4X support at the moment. Best I know it's only Firefox.

My foray into E4X security was: http://scarybeastsecurity.blogspot.com/2009/05/more-plausible-e4x-attack.html

In response to that, Firefox committed a change in 3.5 such that pure XML was not considered valid JavaScript. I'm curious if that change also fixes your UTF7 attack, or if terminating the XML and including another JavaScript statement after causes Firefox to not error?

General question I suppose - is FF3.5.8 still vulnerable to this?

Have fun,
Chris

p.s. the XML isn't rendering properly in my browser. You probably want to escape braces etc. with &#60; even though you're in a PRE tag.</description>
		<content:encoded><![CDATA[<p>Nice!! I only just saw this, for some reason. Great attack.</p>
<p>Google Chrome (or more accurately, v8) doesn&#8217;t have E4X support at the moment. Best I know it&#8217;s only Firefox.</p>
<p>My foray into E4X security was: <a href="http://scarybeastsecurity.blogspot.com/2009/05/more-plausible-e4x-attack.html" rel="nofollow">http://scarybeastsecurity.blogspot.com/2009/05/more-plausible-e4x-attack.html</a></p>
<p>In response to that, Firefox committed a change in 3.5 such that pure XML was not considered valid JavaScript. I&#8217;m curious if that change also fixes your UTF7 attack, or if terminating the XML and including another JavaScript statement after causes Firefox to not error?</p>
<p>General question I suppose - is FF3.5.8 still vulnerable to this?</p>
<p>Have fun,<br />
Chris</p>
<p>p.s. the XML isn&#8217;t rendering properly in my browser. You probably want to escape braces etc. with &lt; even though you&#8217;re in a PRE tag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sirdarckcat</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1473</link>
		<dc:creator>sirdarckcat</dc:creator>
		<pubDate>Fri, 27 Feb 2009 02:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1473</guid>
		<description>sweeeeeeeeeeeet dude</description>
		<content:encoded><![CDATA[<p>sweeeeeeeeeeeet dude</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1469</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Tue, 24 Feb 2009 17:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1469</guid>
		<description>@c

See Kuza's link which discusses defensive measures at the bottom.</description>
		<content:encoded><![CDATA[<p>@c</p>
<p>See Kuza&#8217;s link which discusses defensive measures at the bottom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1468</link>
		<dc:creator>c</dc:creator>
		<pubDate>Tue, 24 Feb 2009 16:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1468</guid>
		<description>How would the server protect against this?  Does the charset tag override the charset header the servers sends with the data?</description>
		<content:encoded><![CDATA[<p>How would the server protect against this?  Does the charset tag override the charset header the servers sends with the data?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1466</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Tue, 24 Feb 2009 14:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1466</guid>
		<description>@thornmaker

You can remote include styles using the link tag, a variation on the one in our Bluehat presentation</description>
		<content:encoded><![CDATA[<p>@thornmaker</p>
<p>You can remote include styles using the link tag, a variation on the one in our Bluehat presentation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thornmaker</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1465</link>
		<dc:creator>thornmaker</dc:creator>
		<pubDate>Tue, 24 Feb 2009 14:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1465</guid>
		<description>Good stuff Gareth!  charset attribute on script tags is new to me.  any other weird tags support it?</description>
		<content:encoded><![CDATA[<p>Good stuff Gareth!  charset attribute on script tags is new to me.  any other weird tags support it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gareth Heyes</title>
		<link>http://www.thespanner.co.uk/2009/02/24/inline-utf-7-e4x-javascript-hijacking/#comment-1464</link>
		<dc:creator>Gareth Heyes</dc:creator>
		<pubDate>Tue, 24 Feb 2009 11:52:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.thespanner.co.uk/?p=361#comment-1464</guid>
		<description>Thanks for the link, I'll check it out</description>
		<content:encoded><![CDATA[<p>Thanks for the link, I&#8217;ll check it out</p>
]]></content:encoded>
	</item>
</channel>
</rss>
