Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 68 guests and 1 member online
 
Advertisement

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Web Applicationsarrow cross site tracing exploitation
EH-Net
May 19, 2013, 03:44:55 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: cross site tracing exploitation  (Read 7010 times)
0 Members and 1 Guest are viewing this topic.
ffmp3g
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: June 11, 2011, 03:42:39 PM »

hi;
please what is the way to exploit cross site tracing vulnerability. could it be dangereous? thanks
Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #1 on: June 11, 2011, 04:11:12 PM »

Cross Site Tracing aka XST is not very likely to become a threat nowadays with updated technology, as most modern browsers prevents all the known and common attack vectors.

Quote from: MaXe
What is XST and can it be used for anything?

XST also known as Cross Site (Script) Tracing is a way of abusing the HTTP Trace (Debug) protocol. Anything that an attacker sends to a web-server that has TRACE enabled will send the same answer back. If an attacker sends the following:

Code:   
TRACE / HTTP/1.0
Host: target.tld
Custom-header: <script>alert(0)</script>   

The attacker will receive the same "Custom-header: <scr..." back allowing script execution. However after recent browser updates the following year(s) XST has been increasingly harder to control and execute properly.

Here's a paper you have to / must read:
http://www.cgisecurity.com/whitehat-mirror/WH-WhitePaper_XST_ebook.pdf

Quote from: OWASP
Note: in order to understand the logic and the goals of this attack you need to be familiar with Cross Site Scripting attacks.

The TRACE method, while apparently harmless, can be successfully leveraged in some scenarios to steal legitimate users' credentials. This attack technique was discovered by Jeremiah Grossman in 2003, in an attempt to bypass the HTTPOnly tag that Microsoft introduced in Internet Explorer 6 sp1 to protect cookies from being accessed by JavaScript. As a matter of fact, one of the most recurring attack patterns in Cross Site Scripting is to access the document.cookie object and send it to a web server controlled by the attacker so that he/she can hijack the victim's session. Tagging a cookie as httpOnly forbids JavaScript to access it, protecting it from being sent to a third party. However, the TRACE method can be used to bypass this protection and access the cookie even in this scenario.

As mentioned before, TRACE simply returns any string that is sent to the web server.



Tools:

XSS Trace: http://attacks.intern0t.net/xstrace/
HTTP Options: http://attacks.intern0t.net/htopt/
(You can use Burp Suite Free, to test XST as well.)

References:
http://www.xssed.com/article/31/The_Beginners_Guide_to_XSS/
http://en.wikipedia.org/wiki/Cross-site_tracing
https://www.owasp.org/index.php/Testing_for_HTTP_Methods_and_XST_(OWASP-CM-008)
Logged

I'm an InterN0T'er
ffmp3g
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: June 11, 2011, 04:19:43 PM »

thanks for your quick reply!
Logged
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« Reply #3 on: August 22, 2011, 10:56:01 AM »

I had some doubts  maxe Smiley

You have said when a web-site has http TRACE method enabled and the attackers sends any thing it will be echoed back

Code:
Code:   
TRACE / HTTP/1.0
Host: target.tld
Custom-header: <script>alert(0)</script> 

but my doubt is

the following script

Code:
<script>alert(0)</script> 

which we are sending will get executed on the web-server ? or just it is echoed back from the web-server with out being executed?




Logged
MaXe
Hero Member
*****
Offline Offline

Posts: 669


I've just upgraded myself to a cyborg muahahaa!!1


View Profile WWW
« Reply #4 on: August 23, 2011, 05:22:59 PM »


which we are sending will get executed on the web-server ? or just it is echoed back from the web-server with out being executed?

It's just like non-persistent XSS, except it isn't a GET or POST request, instead it's the TRACE protocol, which returns any headers sent to the server by default if enabled, as this is how the TRACE protocol is meant to work. (It is recommended to have it disabled anyway.)

In other words: No, the script is just echoed back from the server and is NOT stored.
Logged

I'm an InterN0T'er
manoj9372
Jr. Member
**
Offline Offline

Posts: 72


View Profile
« Reply #5 on: August 23, 2011, 07:50:18 PM »

Code:
It's just like non-persistent XSS, except it isn't a GET or POST request, instead it's the TRACE protocol, which returns any headers sent to the server by default if enabled, as this is how the TRACE protocol is meant to work. (It is recommended to have it disabled anyway.)

In other words: No, the script is just echoed back from the server and is NOT stored.

Thanks for the explanation maxe,i got it Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.072 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.