Document Title: =============== Magento Commerce - CSRLF Web UI Security Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1573 Release Date: ============= 2018-01-19 Vulnerability Laboratory ID (VL-ID): ==================================== 1573 Common Vulnerability Scoring System: ==================================== 4.1 Vulnerability Class: ==================== Cross Site Request Forgery Current Estimated Price: ======================== 1.000€ - 2.000€ Product & Service Introduction: =============================== Magento is an open source e-commerce web application that was launched on March 31, 2008 under the name Bento. It was developed by Varien (now Magento, a division of eBay) with help from the programmers within the open source community but is now owned solely by eBay Inc. Magento was built using parts of the Zend Framework. It uses the entity-attribute-value (EAV) database model to store data. In November 2013, W3Techs estimated that Magento was used by 0.9% of all websites. Our team of security professionals works hard to keep Magento customer information secure. What`s equally important to protecting this data? Our security researchers and user community. If you find a site that isn`t following our policies, or a vulnerability inside our system, please tell us right away. ( Copy of the Vendor Homepage: http://magento.com/security & http://magento.com/security ) Abstract Advisory Information: ============================== The Vulnerability Laboratory Research Team discovered a client-side clickjacking web vulnerability in the official Magento Commerce online service web-application. Vulnerability Disclosure Timeline: ================================== 2018-01-19: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Magento Product: Magento - Web Application Service 2015 Q3 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ A client-side clickjacking web vulnerability has been discovered in the official Magento Commerce online service web-application. The vulnerability allows an remote attacker to trick a web user into clicking on something different from what the user perceives they are clicking on, thus potentially revealing confidential information or taking control of their computer while clicking on seemingly innocuous web pages. The click-jacking web vulnerability is located in the `/products/customer/account` module and affects the referrer requests of the magento commerce website. Remote attackers are able to inject via clickjacking remote magento urls to perform malicious client-side inject or phish user account credentials. The request method to execute is GET and the attack vector is located on the client-side of the online-service web-application. The security risk of the client-side web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 4.1. Exploitation of the client-side validation web vulnerability requires low or medium user interaction and only a low privileged web-application user account. Successful exploitation of the security vulnerability results in the client-side application to browser request manipulation, client-side phishing, client-side external redirects and client-side manipulation of local requested magento modules. Request Method(s): [+] [POST] Vulnerable Domain(s): [+] magentocommerce.com Vulnerable Module(s): [+] ./products/customer/ Affected Module(s): [+] ./account/ Proof of Concept (PoC): ======================= The client-side clickjacking web vulnerability can be exploited by remote attackers with low privilege web-application user account and medium or high user interaction. For security demonstration or to reproduce the security vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Open the website to get a non expired session magento-commerce 2. Open the poc file (test.html) 3. Include to the url of the requested input to the load field ... http://www.magentocommerce.com/products/customer/account 4. Click the load button and then you will receive the click-jacking requested via transparent page by magento commerce 5. Successful reproduce of the vulnerability! Vulnerable Code: newframe.setAttribute("sandbox","allow-scripts allow-forms"); PoC: Exploit Clickjack Test Page
^


This is sample content rendered from the parent frame
--- PoC Session Logs [GET] --- Status: 302[Moved Temporarily] GET https://www.magentocommerce.com/products/customer/account/ Mime Type[text/html] Request Header: Host[www.magentocommerce.com] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Cookie[frontend=amrfom8gv9ivqr1334m2osa7v6; frontend=amrfom8gv9ivqr1334m2osa7v6] Connection[keep-alive] Response Header: Server[nginx] Content-Type[text/html; charset=UTF-8] Transfer-Encoding[chunked] Connection[keep-alive] p3p[CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"] Set-Cookie[frontend=amrfom8gv9ivqr1334m2osa7v6; expires=Fri, path=/; domain=www.magentocommerce.com] Location[https://www.magentocommerce.com/products/customer/account/login/] - Status: 200[OK] GET https://www.magentocommerce.com/products/customer/account/login/ Mime Type[text/html] Request Header: Host[www.magentocommerce.com] User-Agent[Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0] Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8] Cookie[frontend=amrfom8gv9ivqr1334m2osa7v6; frontend=amrfom8gv9ivqr1334m2osa7v6] Connection[keep-alive] Response Header: Server[nginx] Content-Type[text/html; charset=UTF-8] Transfer-Encoding[chunked] Connection[keep-alive] p3p[CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"] Cache-Control[no-store, no-cache, must-revalidate, post-check=0, pre-check=0] Set-Cookie[frontend=amrfom8gv9ivqr1334m2osa7v6; expires=Fri,; path=/; domain=www.magentocommerce.com] Login-Required[true] Reference(s): http://www.magentocommerce.com/ http://www.magentocommerce.com/products/ http://www.magentocommerce.com/products/customer/ http://www.magentocommerce.com/products/customer/account Solution - Fix & Patch: ======================= The security vulnerability has been patched by the magento security team within 2017 Q1 - Q4. Security Risk: ============== The security risk of the client-side clickjacking web vulnerability in the magento commerce application is estimated as medium (CVSS 4.1). Credits & Authors: ================== Vulnerability-Lab [admin@vulnerability-lab.com] - https://www.vulnerability-lab.com/show.php?user=Vulnerability-Lab 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 Labs or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability mainly for incidental or consequential damages so the foregoing limitation may not apply. We do not approve or encourage anybody to break any licenses, policies, deface websites, hack into databases or trade with stolen data. We have no need for criminal activities or membership requests. We do not publish advisories or vulnerabilities of religious-, militant- and racist- hacker/analyst/researcher groups or individuals. We do not publish trade researcher mails, phone numbers, conversations or anything else to journalists, investigative authorities or private individuals. Domains: www.vulnerability-lab.com - www.vulnerability-db.com - www.evolution-sec.com Programs: vulnerability-lab.com/submit.php - vulnerability-lab.com/list-of-bug-bounty-programs.php - vulnerability-lab.com/register.php Feeds: vulnerability-lab.com/rss/rss.php - vulnerability-lab.com/rss/rss_upcoming.php - vulnerability-lab.com/rss/rss_news.php Social: twitter.com/vuln_lab - facebook.com/VulnerabilityLab - youtube.com/user/vulnerability0lab Any modified copy or reproduction, including partially usages, of this file, resources or information 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, modify, use or edit our material contact (admin@) to get an ask permission. Copyright © 2018 | Vulnerability Laboratory - [Evolution Security GmbH]™