CVE-2018-20755 MODX Revolution vulnerable to XSS attack through its User Photo field

Medium 6.1 Published Updated

An attacker can inject malicious scripts via the User Photo field in MODX Revolution, potentially leading to session hijacking or 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-2018-20755?

CVE-2018-20755 is a medium-severity cross-site scripting vulnerability in n/a, published on 6 Feb 2019. 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

MODX Revolution through v2.7.0-pl allows XSS via the User Photo field.

Weakness: CWE-79

Which versions are affected by CVE-2018-20755?

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

PackageAffectedFixed in
modx/revolution PackagistAll versions2.7.1-pl
modx/revolution PackagistAll versions2.7.1-pl

Products include Modx Modx Revolution.

How do I fix CVE-2018-20755?

Upgrade modx/revolution to 2.7.1-pl 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-2018-20755 being exploited?

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

Sources

Also known as GHSA-q4c2-q63g-62j7.

Is CVE-2018-20755 in your software?

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

Check your SBOMs for free