XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, local.ebay.com
Reported to eBay Security
Report generated by XSS.Cx at Sun Jan 15 05:51:18 CST 2012.
1. Cross-site scripting (reflected)
1.1. http://local.ebay.com/local/localsch.html [REST URL parameter 1]
1.2. http://local.ebay.com/local/localsch.html [REST URL parameter 2]
1.3. http://local.ebay.com/local/localsch.html [_nkw parameter]
1.4. http://local.ebay.com/local/localsch.html [name of an arbitrarily supplied request parameter]
2. Cookie scoped to parent domain
2.1. http://local.ebay.com/
2.2. http://local.ebay.com/%22http:/
2.3. http://local.ebay.com/%22https:/
2.4. http://local.ebay.com/Netsparker8fb01a92c9ab454dac239bbf4eea9670
2.5. http://local.ebay.com/Netsparkercafcc364b74d42e78e11240bb32f4487
2.6. http://local.ebay.com/Netsparkerda2c171579864172a93a0dee2635cf81/
2.7. http://local.ebay.com/Netsparkerfef19f760fcf485390b22c198f57cfa9
2.8. http://local.ebay.com/favicon.ico
2.9. http://local.ebay.com/html
2.10. http://local.ebay.com/html/
2.11. http://local.ebay.com/html/disclaimer.html
2.12. http://local.ebay.com/html/disclaimer.html.nsx
2.13. http://local.ebay.com/local
2.14. http://local.ebay.com/local/
2.15. http://local.ebay.com/local/images.i
2.16. http://local.ebay.com/local/images.i
2.17. http://local.ebay.com/local/localsch.html
2.18. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C
2.19. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C/
2.20. http://local.ebay.com/local/localsch.html-_nkw=xss3e2e4%22style%3d%22x%3aexpression%28alert%281%29%29%2277a49c5d808&_location=75217&_fpos=75217&_trksid=p5791.m1
2.21. http://local.ebay.com/server-info
2.22. http://local.ebay.com/server-status
3. Cookie without HttpOnly flag set
3.1. http://local.ebay.com/
3.2. http://local.ebay.com/%22http:/
3.3. http://local.ebay.com/%22https:/
3.4. http://local.ebay.com/Netsparker8fb01a92c9ab454dac239bbf4eea9670
3.5. http://local.ebay.com/Netsparkercafcc364b74d42e78e11240bb32f4487
3.6. http://local.ebay.com/Netsparkerda2c171579864172a93a0dee2635cf81/
3.7. http://local.ebay.com/Netsparkerfef19f760fcf485390b22c198f57cfa9
3.8. http://local.ebay.com/favicon.ico
3.9. http://local.ebay.com/html
3.10. http://local.ebay.com/html/
3.11. http://local.ebay.com/html/disclaimer.html
3.12. http://local.ebay.com/html/disclaimer.html.nsx
3.13. http://local.ebay.com/local
3.14. http://local.ebay.com/local/
3.15. http://local.ebay.com/local/images.i
3.16. http://local.ebay.com/local/images.i
3.17. http://local.ebay.com/local/localsch.html
3.18. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C
3.19. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C/
3.20. http://local.ebay.com/local/localsch.html-_nkw=xss3e2e4%22style%3d%22x%3aexpression%28alert%281%29%29%2277a49c5d808&_location=75217&_fpos=75217&_trksid=p5791.m1
3.21. http://local.ebay.com/server-info
3.22. http://local.ebay.com/server-status
4. Cross-domain Referer leakage
4.1. http://local.ebay.com/
4.2. http://local.ebay.com/local
4.3. http://local.ebay.com/local/
4.4. http://local.ebay.com/local/localsch.html
4.5. http://local.ebay.com/local/localsch.html
4.6. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C
4.7. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C/
4.8. http://local.ebay.com/local/localsch.html-_nkw=xss3e2e4%22style%3d%22x%3aexpression%28alert%281%29%29%2277a49c5d808&_location=75217&_fpos=75217&_trksid=p5791.m1
5. Cross-domain script include
5.1. http://local.ebay.com/
5.2. http://local.ebay.com/%22http:/
5.3. http://local.ebay.com/%22https:/
5.4. http://local.ebay.com/Netsparker8fb01a92c9ab454dac239bbf4eea9670
5.5. http://local.ebay.com/Netsparkercafcc364b74d42e78e11240bb32f4487
5.6. http://local.ebay.com/Netsparkerfef19f760fcf485390b22c198f57cfa9
5.7. http://local.ebay.com/html
5.8. http://local.ebay.com/html/
5.9. http://local.ebay.com/local
5.10. http://local.ebay.com/local/
5.11. http://local.ebay.com/local/localsch.html
5.12. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C
5.13. http://local.ebay.com/local/localsch.html-_nkw=xss&_location=75217&_fpos=75217&_trksid=p5791.m1&dc13b%22%3E%3Cscript%3Ealert%281%29%3C/
5.14. http://local.ebay.com/local/localsch.html-_nkw=xss3e2e4%22style%3d%22x%3aexpression%28alert%281%29%29%2277a49c5d808&_location=75217&_fpos=75217&_trksid=p5791.m1
5.15. http://local.ebay.com/server-info
5.16. http://local.ebay.com/server-status
6. Email addresses disclosed
6.1. http://local.ebay.com/html/disclaimer.html
6.2. http://local.ebay.com/local/disclaimer.html
7. Content type is not specified
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:- Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
- User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
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://local.ebay.com/local/localsch.html [REST URL parameter 1]
next
Summary
Severity: |
High |
Confidence: |
Firm |
Host: |
http://local.ebay.com |
Path: |
/local/localsch.html |
Issue detail
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 75826"><a>c9f6e0b2011 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.
Request
GET /local75826"><a>c9f6e0b2011/localsch.html?_nkw=rxss&_fpos=75217&_flprad=25.0&_fspt=1 HTTP/1.1 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30) Cache-Control: no-cache Host: local.ebay.com Accept-Encoding: gzip, deflate Proxy-Connection: Keep-Alive Content-Length: 10
|
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 RlogId: jh%60djkbkbnmbvfd%60%3C%3Ds%7D%2Bpu56*%3A37dg%60b-134ac8b4030 Cache-Control: no-cache Pragma: no-cache Set-Cookie: ebay=%5Ecv%3D15555%5E; Domain=.ebay.com; Path=/ Set-Cookie: s=CgAD4ACBPBpPeYWM4YjQwMzAxMzQwYTAyYTA5NTFmZTYxZmZmZmUzOGQA7gBsTwaT3mh0dHA6Ly9sb2NhbC5lYmF5LmNvbTo4MC9sb2NhbDc1ODI2Ij48YT5jOWY2ZTBiMjAxMS9sb2NhbHNjaC5odG1sP19ua3c9cnhzcyZfZnBvcz03NTIxNyZfZmxwcmFkPTI1LjAmX2NhdGlkPYnO8rU*; Domain=.ebay.com; Path=/ Set-Cookie: nonsession=CgADKACBYa0PeYWM4YjQwMzAxMzQwYTAyYTA5NTFmZTYxZmZmZmUzOGQAywABTwVJZjEH2XkF; Domain=.ebay.com; Expires=Fri, 04-Jan-2013 06:25:34 GMT; Path=/ Content-Type: text/html;charset=UTF-8 Content-Length: 29145 Date: Thu, 05 Jan 2012 06:25:34 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>eBay - rxss</title><link href="http://www.ebay.com/favicon.ico" rel="icon" type="image/ico"><link href="/local/localcss.css" rel="stylesheet" type="text/css"></head><body id="body"><!--[if lt IE 8 ]> <style type="text/css"> .srpbt{position:relative;width:1%;margin:10px 0 0} .srpi {width:411px} .srpi input{width:295px;} </style><![endif]--><div id="ff-body" class="bdy"><script type="text/javascript">var _GlobalNavHeaderUtf8Encoding=true;</script><script type="text/javascript">var includeHost="http://include.ebaystatic.com/";</script><link rel="stylesheet" type="text/css" href="http://ir.ebaystatic.com/v4css/z/2s/3zhykpa5ca0zthsnrhjg02hpi.css"><script src="http://ir.ebaystatic.com/v4js/z/yo/qicc5beyw2zejm0u4bus2lv3u.js"></script><script type="text/javascript" src="http://ir.ebaystatic.com/v4js/z/qz/kjtciulcyi4gtcfxjs5s2k33m.js"></script><!--[if lt IE 7 ]><div id='gnheader' class='gh-w ie6'><![endif]--><!--[if IE 7]><div id='gnheader' class='gh-w ie7'><![endif]--><!--[if (gt IE 7)|!(IE)]><!--><div id="gnheader" class="gh-w"><!--<![endif]--><a href="#mainContent" rel="nofollow" class="g-hdn">Skip to main content</a><div><div class="gh-eb"><div class="gh-emn"><div class="gh-hid"></div><div class="gh-mn"><span class="gh-fst"><a id="MyEbay" href="http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&gbh=1" _sp="m570.l2919">My eBay</a></span><a id="Sell" href="http://cgi5.ebay.com/ws/eBayISAPI.dll?aidZ153=&MfcISAPICommand=SellHub3" _sp="m570.l1528">Sell</a><a id="Community" href="http://community.ebay.com" _sp="m570.l1540">Community</a><span class="gh-nho"></span><a id="Help" href="http://ocs.ebay.com/ws/eBayISAPI.dll?CustomerSupport" _sp="m570.l1545">Customer Support</a><span class="gh-nho"><span class="gh-sc" style="display:none" id="GH_Cart"><a href="http://payments.ebay.com/ws/eBayISAPI.dll?ShopCart&ssPageName=CART:HDR"><img src="http://p.ebaystatic.com/aw/pics/buy/cart/iconCart000.gif" alt="Your shopping cart" border="0" height="24" width="31"></img>Cart</a></span><script type="text/javascript">vjo.darwin.globalnav.shoppingcart.ShoppingCart.RefreshCart()</script></span></div></div><form id="headerSearch" name="headerSearch" method="get" action="http://www.ebay.com/sch/i.html"><input type="hidden" name="_from" value="R40"><input type="hidden" name="_trksid" value="m570.l2736"><span class="gh-esb"><label for="_nkw" class="g-hdn">Enter your search keyword</label><input type="text" class="gh-txt" name="_nkw" id="_nkw"><a><input type="submit" value="Go" class="gh-go"></a></span></form></div><div class="gh-log"><span class="gh-lg"><a id="EbayLogo" href="http://www.ebay.com" _sp="m570.l2586"><img src="http://p.ebaystatic.com/aw/pics/logos/logoEbay_x45.gif" alt="eBay" border="0" height="45" width="110"></img></a></span><span class="gh-wrap"><span class="gh-shim"></span><span class="greeting gh-ui"><script type="text/javascript">vjo.darwin.core.greetings.VjGreetingsClient.writePersonalHeader("Sign in", "https://signin.ebay.com/ws/eBayISAPI.dll?SignIn", "register", "https://scgi.ebay.com/ws/eBayISAPI.dll?RegisterEnterInfo", "Sign out", "https://signin.ebay.com/ws/eBayISAPI.dll?SignIn", "Welcome! ##1## or ##2##.", "Hi, <b>##1##<\/b>! (##2##)", "Hi, <b>##1##<\/b>! (<a href=\"https://signin.ebay.com/ws/eBayISAPI.dll?SignIn\" _sp=\"m570.l2620\">Not you<\/a>?)", "Hello! <a href=\"https://signin.ebay.com/ws/eBayISAPI.dll?SignIn\" _sp=\"m570.l1524\">Sign in/out<\/a>.", "<img src=\"http://p.ebaystatic.com/aw/pics/icon/iconWarnRed_16x16.gif\" height=\"16\" width=\"16\" alt=\"Alert\">", "<span id=\"bta\">##1##<\/span>", " | You have <a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&gbh=1&ssPageName=STRK:ME:LNLK&CurrentPage=MyeBayMyMessages\" _sp=\"m570.l2623\">##1## alert<\/a>.", " | You have <a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyEbay&gbh=1&ssPageName=STRK:ME:LNLK&CurrentPage=MyeBayMyMessages\" _sp=\"m570.l2623\">##1## alerts<\/a>.", "1", "", true)</script></span><span class="coupon rebate" id="rbt" style="display:none"><img src="http://p.ebaystatic.com/aw/pics/promo/magic/pmoGleam10_150x23.gif" alt="Coupon" border="0" height="23" width="150"></img><!--googleoff: all--> Must use Buy It Now and PayPal.<br/><a href="http://pages.ebay.com/cashbackoffer/terms.html" _sp="m570.l2735">See conditions</a><!--googleon: all--><script type="text/javascript">vjo.darwin.core.ebayheader.rebate.RebateBox.Refresh("rbt", "10", "<img src=\"http://q.ebaystatic.com/aw/pics/icons/iconRedeemCoupon20x20.gif\" alt=\"Coupon\" border=\"0\" height=\"20\" width=\"20\"><\/img><a href=\"http://my.ebay.com/ws/eBayISAPI.dll?MyeBay&CurrentPage=MyeBayIncentives&gbh=1\" _sp=\"m570.l2735\">You have coupons available<\/a>")</script></span></span></div><div></div></div><div class="gh-cl"></div><div><div class="gh-col"><b class="gh-c1"></b><b class="gh-c2"></b><b class="gh-c3"></b><b class="gh-c4"></b><b class="gh-c5"></b><b class="gh-c6"></b><b class="gh-c7"></b><div class="gh-clr"></div></div><div id="headerWrapper" class="gh-hbw"><div class="gh-hb"><div class="gh-mn"><a id="BrowseCategories" href="http://shop.ebay.com/allcategories/all-categories" _sp="m570.l1620">CATEGORIES</a><a id="chevron0" href="javascript:;" class="gh-ai"><b> </b></a><a id="EbayElectronics" title="Your shopping destination for the best selection and value in electronics and accessories" href="http://www.ebay.com/electronics/" _sp="m570.l2959">ELECTRONICS</a><span id="11450_sp"><a title="Your new destination for Clothing, Shoes & Accessories on eBay." href="http://www.ebay.com/fashion/" _sp="m570.l2624">FASHION</a></span><a id="6000_sp" title="Buy and sell cars, trucks, vehicle parts, and accessories." href="http://www.motors.ebay.com/" _sp="m570.l2597">MOTORS</a><a id="EbayTickets" title="Tickets ... Sports, Concerts, Theater and More on eBay" href="http://www.ebay.com/tickets" _sp="m570.l1624">TICKETS</a><a id="172382_sp" title="Great items, deep discounts, and free shipping!" href="http://deals.ebay.com/" _sp="m570.l2625">DEALS</a><a id="EbayClassifieds" href="http://www.ebayclassifieds.com" _sp="m570.l2626">CLASSIFIEDS</a></div></div><div class="gh-lbh1"><div class="gh-rtm" style="display:inline-block;display:block;"><div id="rtm_html_876"></div></div></div><div class="gh-lbh2"><div class="gh-rtm" style="display:inline-block;display:block;"><div id="rtm_html_912"></div></div></div><div class="gh-lbh3"><div class="gh-rtm" style="display:inline-block;display:block;"><div id="rtm_html_433"></div></div></div><div class="gh-clr"></div></div><img src="http://rover.ebay.com/roversync/?site=0&stg=1&mpt=1325719836074" alt="" width="1" height="1"><script type="text/javascript">var svrGMT = 1325719836074;var scbps=0;var scPageName='GlobalHeader:3872';</script><div class="gh-ovr" id="gbh_ovl"><div class="gh-iovr"></div></div></div><a name="mainContent"></a></div><script src="http://include.ebaystatic.com/js/e723/us/ebaybase_v4_e7231us.js"></script><script src="http://include.ebaystatic.com/js/e681/us/ebaysup_e6811us.js"></script><script type="text/javascript">if(document.documentMode != 8 && document.compatMode != "CSS1Compat") ebay.oDocument._getControl("headerCommon")._exec("writeStyleSheet");</script><script type="text/javascript">vjo.Registry.put('bta', new vjo.darwin.globalnav.bta.BuyerTransactionAlert("bta", 60, 2, 2, "http://bmsgs.ebay.com/ws/eBayISAPI.dll?GetBuyerTransactionAlerts", "http://q.ebaystatic.com/aw/pics/", "http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem", "Watched Item ending soon!", "You've been outbid!", "You've received a Second Chance Offer", "You've received a Transaction Confirmation Request.")); vjo.darwin.globalnav.util.EventReg.aggregate(vjo.Registry._bta.onRefreshHdl()); vjo.darwin.globalnav.util.EventReg.browseCategories("BrowseCategoriesMenu", "http://include.ebaystatic.com/categoryjs/99/en_US_MAIN/category_99en_US_MAIN0.js"); vjo.darwin.globalnav.util.EventReg.impression("AD1WaLJI*"); </script><script type="text/javascript">vjo.darwin.globalnav.util.DoctypeSupport.init();</script><script type="text/javascript">var _oGlobalNavRTMInfo={};_oGlobalNavRTMInfo.aRTMPlacementData=[];_oGlobalNavRTMInfo.aRTMPlacementData=[{"ord":null,"maxWidth":"470","renderOnScroll":false,"rtmUrl":"http://srx.main.ebayrtm.com/rtm","userId":null,"htmlId":"rtm_html_433","GUid":null,"renderOnLoadAndScroll":false,"maxHeight":"22","pid":"433","isUserSignin":false,"renderOnLoadAndScrollSiteSpeed":false,"renderBeforeOnload":true},{"ord":null,"maxWidth":"160","renderOnScroll":false,"rtmUrl":"http://srx.main.ebayrtm.com/rtm","userId":null,"htmlId":"rtm_html_876","GUid":null,"renderOnLoadAndScroll":false,"maxHeight":"22","pid":"876","isUserSignin":false,"renderOnLoadAndScrollSiteSpeed":false,"renderBeforeOnload":true},{"ord":null,"maxWidth":"160","renderOnScroll":false,"rtmUrl":"http://srx.main.ebayrtm.com/rtm","userId":null,"htmlId":"rtm_html_912","GUid":null,"renderOnLoadAndScroll":false,"maxHeight":"22","pid":"912","isUserSignin":false,"renderOnLoadAndScrollSiteSpeed":false,"renderBeforeOnload":true},{"ord":null,"maxWidth":"470","renderOnScroll":false,"rtmUrl":"http://srx.main.ebayrtm.com/rtm","userId":null,"htmlId":"rtm_html_1650","GUid":null,"renderOnLoadAndScroll":false,"maxHeight":"22","pid":"1650","isUserSignin":false,"renderOnLoadAndScrollSiteSpeed":false,"renderBeforeOnload":false},{"ord":null,"maxWidth":"470","renderOnScroll":false,"rtmUrl":"http://srx.main.ebayrtm.com/rtm","userId":null,"htmlId":"rtm_html_1651","GUid":null,"renderOnLoadAndScroll":false,"maxHeight":"22","pid":"1651","isUserSignin":false,"renderOnLoadAndScrollSiteSpeed":false,"renderBeforeOnload":false}];</script |