Document Title: =============== Magento Commerce T2 - (attr) Persistent Web Vulnerability Date: ===== 2018-02-06 References: =========== VL-ID: ===== 1459 Common Vulnerability Scoring System: ==================================== 3.9 Vulnerability Class: ==================== Cross Site Scripting - Persistent 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: & ) Abstract: ========= The Vulnerability Laboratory Research Team discovered an application-side vulnerability in the official Magento Commerce web-application. Report-Timeline: ================ 2018-02-06: Non-Public Disclosure (Vulnerability Laboratory - Shared Customer Research Feed) Status: ======== Published Affected Products: ================== Ebay Inc. Product: Magento - Connect Web Application v2015 Q2 Exploitation-Technique: ======================= Remote Severity: ========= Medium Details: ======== A persistent input validation web vulnerability has been discovered in the official Magento xCommerce web-application. The vulnerability allows remote attackers to inject own script code on the application-side of the affected service module. The vulnerability is located in the `attr` value of the `magento-connect/message/message/create/` module. The attacker needs to create a `New Message` and tampers the POST method request. Then the attacker changes the vulnerable attr value with a malicious payload. The execution occurs in the same modules context. The request method to inject is POST and the attack vector of the vulnerability is located on the application-side of the magento service. The security risk of the vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.9. Exploitation of the vulnerability requires a low privileged web-application user account and low or medium user interaction. Successful exploitation of the application-side vulnerability results in session hijacking, persistent phishing, persistent external redirects and persistent manipulation affected or connected module context. Vulnerable Domain(s): [+] (Magento Connect) Request Method(s): [+] POST Vulnerable Module(s): [+] New Message Vulnerable Parameter(s): [+] attr Proof of Concept: ================= The vulnerability can be exploited by remote attackers with low privileged web-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. Open the following url of magento commerce ( 2. Click the Magento send message function 3. Tamper the session to intercept the attr value to bypass the filter mechanism 4. Application-side script code (html or js) execution occurs in the followup request of the same module page 5. Successful reproduce of the filter bypass issue and application-side input validation vulnerability! POC: Execution Point
#document --- PoC Session Logs [POST] (Injection Point) --- POST Mime Type[text/html] Request Headers: Host[] User-Agent[Mozilla/5.0 (X11; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0] 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] Referer[] Cookie[frontend=p5vvhp956ob5td8jvfhn4p7006; frontend=p5vvhp956ob5td8jvfhn4p7006; bvReturnPosition="PRR/4643co-en_us/27261/BVRRWidgetID"; optimizelySegments=%7B%22239237138%22%3A%22referral%22%2C%22237962548%22%3A%22ff%22%2C%22238367687%22%3A%22false%22%7D; optimizelyEndUserId=oeu1427859799829r0.9503229301677888; optimizelyBuckets=%7B%7D; s_fid=1EA04ABDF830C3FB-06BD2154AEEBE2E4; utm_src=expired; ClrSSID=1427859801483-7868; ClrOSSID=1427859801483-7868; ClrSCD=1427859801483; __utma=1.1287583223.1429705092.1429705092.1429705092.1; __utmz=1.1429705092.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); fsr.r=%7B%22d%22%3A90%2C%22i%22%3A%22d5e2305-49168485-0768-7e1c-278cb%22%2C%22e%22%3A1428580157028%7D; exp_domain=c; exp_last_activity=1428276395; exp_last_visit=1112916395; s_cc=true;; fsr.s=%7B%22v1%22%3A-1%2C%22v2%22%3A-2%2C%22rid%22%3A%22d5e2305-49905479-c81c-469a-6629b%22%2C%22to%22%3A5%2C%22c%22%3A%22 true%7D%7D%2C%22cd%22%3A0%2C%22f%22%3A1429706048882%2C%22sd%22%3A0%7D; __utmc=1; interstitial=3; frontend=4gl45gttc5ov0r2mmubj7ibeu2; frontend=4gl45gttc5ov0r2mmubj7ibeu2; __utmb=; __utmt=1; optimizelyPendingLogEvents=%5B%22n%3Dengagement%26u%3Doeu1427859 799829r0.9503229301677888%26wxhr%3Dtrue%26t%3D1429706070752%26f%3D2527220085%2C2569020185%2C2580670009%26g%3D28355055%22%5D] X-Forwarded-For[] Connection[keep-alive] Post Data: POST_DATA[-----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="to" addext01 -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="subjects" lklk -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="description" -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="extension_url" -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="parent_message_id" 0 -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="prevent_click" 0 -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="draft" 0 -----------------------------4019507141167413819708507218 Content-Disposition: form-data; name="send" 0 -----------------------------4019507141167413819708507218--] Reference(s): Solution: ========= The security vulnerability in the magento web-application is marked as resolved by the magento developer team within 2017 Q1 - Q4. Risk: ===== The security risk of the persistent cross site scripting vulnerability in the attr parameter is estimated as medium. Credits: ======== Vulnerability-Lab [] - Disclaimer: =========== 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 licenses, policies, deface websites, hack into databases or trade with stolen data. Domains: - - Contact: - - Section: - - Social: - - Feeds: - - Programs: - - 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, modify, use or edit our material contact (admin@ or to get a ask permission. Copyright © 2018 | Vulnerability Laboratory - [Evolution Security GmbH]™