#VU5361 Directory traversal in Magmi

 

#VU5361 Directory traversal in Magmi

Published: January 24, 2017 / Updated: March 11, 2017


Vulnerability identifier: #VU5361
Vulnerability risk: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:A/U:Amber
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Magmi
Software vendor:
Sebastien Bracquemont

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.



Remediation

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

External links