Document Title: =============== Ebay Magento Bug Bounty #9 - Bypass & Persistent Vulnerability References (Source): ==================== http://www.vulnerability-lab.com/get_content.php?id=1443 EIBBP-31471 Release Date: ============= 2015-08-05 Vulnerability Laboratory ID (VL-ID): ==================================== 1443 Common Vulnerability Scoring System: ==================================== 4.1 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: ============================== An independent vulnerability laboratory researcher discovered an application-side input validation vulnerability and filter bypass issue in the official Magento web-application. Vulnerability Disclosure Timeline: ================================== 2015-08-06: Public Disclosure (Vulnerability Laboratory) Discovery Status: ================= Published Affected Product(s): ==================== Magento Product: Magento - Web Application Service 2015 Q1 Exploitation Technique: ======================= Remote Severity Level: =============== Medium Technical Details & Description: ================================ An application-side mail encoding web vulnerability has been discovered in the official in the official Magento web-application. The vulnerability allows remote attackers to bypass the outgoing mail filter validation of the magento web-server & web-application. The vulnerability is located in the edit_profile module of the magentocommerce service (tier 2). The vulnerability allows a local low privileged application user account to bypass the filter validation to execute own script code on the application-side of the service. The injection request method is POST and the attack vector is persistent. The issue can be exploited in connection with a non expired user session to request cookies, phish or execute persistent manipulated module context. The page edite profile it is vulnerable to xss attack meaning that if an any user can be tricked to visit a special crafted URL created by a remote attacker (profie) via send link profile , the attacker can insert arbitrary script code into the profiles page. The security risk of the filter bypass and persistent web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 4.1. Exploitation of the web vulnerability requires no privileged web-application user account and low or medium user interaction because of the persistent attack vector. Successful exploitation of the encoding vulnerability results in session hijacking, persistent phishing, persistent external redirects and persistent manipulation of affected or connected module context. Vulnerable Domain(s): [+] magentocommerce.com Vulnerable Module(s): [+] boards/member/ Vulnerable Parameter(s): [+] url Affected Context Module(s): [+] edit_profile/ Proof of Concept (PoC): ======================= The filter bypass and persistent input validation web vulnerability can be exploited by remote attackers with low privileged application user account and low user interaction. For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue. Manual steps to reproduce the vulnerability ... 1. Watch the video demonstration that shows how to zero-way bypass the validation and execute the persistent script code PoC: Payload " onload=document.location='http://evolution-sec.com'> " onload=alert('Zero-way')> PoC: Source (Execution)