CVE-2017-7391 Magmi XSS Vulnerability

Medium 6.1 Published Updated

An attacker can execute arbitrary scripts in a victim's browser via the Magmi import tool's time AJAX endpoint.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-7391?

CVE-2017-7391 is a medium-severity cross-site scripting vulnerability in n/a, published on 1 Apr 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A Cross-Site Scripting (XSS) was discovered in 'Magmi 0.7.22'. The vulnerability exists due to insufficient filtration of user-supplied data (prefix) passed to the 'magmi-git-master/magmi/web/ajax_gettime.php' URL. An attacker could execute arbitrary HTML and script code in a browser in the context of the vulnerable website.

Weakness: CWE-79

Which versions are affected by CVE-2017-7391?

2 open source packages ship an affected version, including dweeves/magmi. It affects 1 product.

PackageAffectedFixed in
dweeves/magmi PackagistAll versions0.7.24
dweeves/magmi PackagistAll versions0.7.24

Products include Magmi Project Magmi.

How do I fix CVE-2017-7391?

Upgrade dweeves/magmi to 0.7.24 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2017-7391 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-7391 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-r8vh-cm9f-rc29.

Is CVE-2017-7391 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free