owncloud.com: Cross Site Tracing
The web server answered HTTP TRACE requests, echoing the request back to the client, including cookies. An attacker who could also run script in the victim's browser could read cookies that were otherwise protected from script access.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 4 hours
- Disclosed after 53 days
REQUEST:
TRACE / HTTP/1.0
Host: owncloud.com
Cookie: 74b33b43fa`
RESPONSE:
HTTP/1.1 200 OK
Date: Wed, 19 Aug 2015 06:59:31 GMT
Server: Apache/2.2.17 (Linux/SUSE)
Connection: close
Content-Type: message/http
TRACE / HTTP/1.0 Host: owncloud.com Cookie: 74b33b43fa; wordpress_test_cookie=WP+Cookie+check; _icl_current_language=en
This vulnerability can show cookie with http only flag
with xss it's a very critical attack vector
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the web server left the TRACE method enabled, so it echoed request headers, including cookies, back in the response body.
Impact
If an attacker can also run script in the victim's browser, they could read cookies that were meant to be hidden from script, which the report calls a very critical attack vector.
What the attacker needed
Server accepts TRACE; attacker can run script in victim browser
How it was found
- Send an HTTP TRACE request to the host with a cookie.
- Observe the server reply with status 200 and content type message/http.
- See the original request, including the cookie, echoed in the response body.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
HTTP has a TRACE method that asks a server to send the request back unchanged. Here the server did that, including the browser's cookies. Normally a cookie marked HttpOnly cannot be read by JavaScript, but if a script can make a TRACE request and read the reply, it can see the cookie anyway.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.