Directory traversal in Magmi plugin for Magento



Published: 2015-10-14 | Updated: 2017-03-11
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID N/A
CWE-ID CWE-22
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Magmi
Web applications / Modules and components for CMS

Vendor Sebastien Bracquemont

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Directory traversal

EUVDB-ID: #VU5361

Risk: High

CVSSv3.1: 8 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N/E:F/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Exploit availability: No

Description

The vulnerability allows a remote attacker to obtain potentially sensitive information on the target sustem.

The weakness exists due to improper filtration of user-supplied input passed via the "file" HTTP GET parameter to  "/magmi-importer/web/download_file.php" script. A remote attacker can use directory traversal sequences (e.g. "../../") to view contents of arbitrary files on the target system. 

Exploitation example observed in the wild:

GET /…sanitized…/magmi-importer/web/download_file.php?file=../../app/etc/local.xml HTTP/1.1
Successful exploitation of the vulnerability results in disclosure of confidential and sensitive information from the root folder of the application. In case of Magento, the "/app/etc/local.xml" file contains credentials and encryption keys.

Note: the vulnerability was being actively exploited.


Mitigation

Install new versions from GitHub:
https://github.com/dweeves/magmi-git

Vulnerable software versions

Magmi: 0.7.17 - 0.7.23

External links

http://github.com/dweeves/magmi-git
http://www.trustwave.com/Resources/SpiderLabs-Blog/Zero-day-in-Magmi-database-client-for-popular-e-...


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.



###SIDEBAR###