CVE-2017-9071 MODX Revolution XSS via HTTP Host header

Medium 4.7 Published Updated

Attackers can inject scripts via HTTP Host header in MODX Revolution, requiring cache poisoning for exploitation, leading to potential code execution.

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-9071?

CVE-2017-9071 is a medium-severity cross-site scripting vulnerability in n/a, published on 18 May 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

In MODX Revolution before 2.5.7, an attacker might be able to trigger XSS by injecting a payload into the HTTP Host header of a request. This is exploitable only in conjunction with other issues such as Cache Poisoning.

Weakness: CWE-79

Which versions are affected by CVE-2017-9071?

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

PackageAffectedFixed in
modx/revolution PackagistAll versions2.5.7
modx/revolution PackagistAll versions2.5.7

Products include Modx Modx Revolution.

How do I fix CVE-2017-9071?

Upgrade modx/revolution to 2.5.7 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-9071 being exploited?

There is no known exploitation of CVE-2017-9071 in the wild and no public exploit code.

Sources

Also known as GHSA-p2j4-vrgx-96qg.

Is CVE-2017-9071 in your software?

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

Check your SBOMs for free