<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>internet explorer madness</title>
        <description>I have a page that loads a third party stylesheet and alert()'s some info from it. For some reason it only works if I open it locally; hosting the page anywhere breaks it. 

Here's the code:

&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://SNIP&amp;quot; type=&amp;quot;text/css&amp;quot;&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;script&amp;gt;
alert(document.body.currentStyle.fontFamily);
&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

I've looked at the HTTP requests in burp and they appear to be identical, except that the local one is missing the Referer header since it's cross-protocol.

I've tried changing the doctype &amp;amp; turning quirks mode on and off to to avail. Any ideas?</description>
        <link>http://sla.ckers.org/forum/read.php?2,46068,46068#msg-46068</link>
        <lastBuildDate>Wed, 19 Jun 2013 23:51:32 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,46068,47892#msg-47892</guid>
            <title>Re: internet explorer madness</title>
            <link>http://sla.ckers.org/forum/read.php?2,46068,47892#msg-47892</link>
            <description><![CDATA[Seems like it's related to security zones; the poc only works if it's in the trusted/local security zone. Ah well.]]></description>
            <dc:creator>Albino</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 23 Apr 2012 07:24:34 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,46068,46070#msg-46070</guid>
            <title>Re: internet explorer madness</title>
            <link>http://sla.ckers.org/forum/read.php?2,46068,46070#msg-46070</link>
            <description><![CDATA[Which version of the internet explorer are you using?<br />
<br />
I have uploaded an HTML page with your code, using the stylesheet from my website, on a completely different domain on a different IP address. And I have the same page on my local Apache, using the same stylesheet from the web. The third possibility is to open the file locally.<br />
<br />
All three possibilities seem to work with Internet Explorer 9, but I had to confirm something about the intranet configuration when requesting the file from the localhost Apache.<br />
<br />
No problem with Internet Explorer 5.5 and 6, but I can't get any of the three possibilities to work with IE 7. These older versions are not running stable on my system and tabs crash frequently.<br />
<br />
Apparently it does not work with the current Firefox and an older Version of K-Meleon, but all versions (local as file, local on my Apache and hosted on a domain) work with Opera 11.62.<br />
<br />
One difference to your example is that my stylesheet is not requested through https, but ordinary http. So I have changed the test page to use a stylesheet from an https site. But still all three possibilities work in IE9 and the current version of Opera.<br />
<br />
I hope that this information helps. :-)]]></description>
            <dc:creator>infinity</dc:creator>
            <category>XSS Info</category>
            <pubDate>Wed, 11 Apr 2012 15:48:15 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,46068,46069#msg-46069</guid>
            <title>Re: internet explorer madness</title>
            <link>http://sla.ckers.org/forum/read.php?2,46068,46069#msg-46069</link>
            <description><![CDATA[When you say host it anywhere breaks it, Im assuming you mean on the net.<br />
<br />
I spun up IIS and atleast using my local IP, I am still able to fire off the alert.]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>XSS Info</category>
            <pubDate>Wed, 11 Apr 2012 15:09:12 -0500</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,46068,46068#msg-46068</guid>
            <title>internet explorer madness</title>
            <link>http://sla.ckers.org/forum/read.php?2,46068,46068#msg-46068</link>
            <description><![CDATA[I have a page that loads a third party stylesheet and alert()'s some info from it. For some reason it only works if I open it locally; hosting the page anywhere breaks it. <br />
<br />
Here's the code:<br />
<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://SNIP&quot; type=&quot;text/css&quot;&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;script&gt;<br />
alert(document.body.currentStyle.fontFamily);<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
<br />
I've looked at the HTTP requests in burp and they appear to be identical, except that the local one is missing the Referer header since it's cross-protocol.<br />
<br />
I've tried changing the doctype &amp; turning quirks mode on and off to to avail. Any ideas?]]></description>
            <dc:creator>Albino</dc:creator>
            <category>XSS Info</category>
            <pubDate>Wed, 11 Apr 2012 14:02:42 -0500</pubDate>
        </item>
    </channel>
</rss>
