CVE-2020-35571 MantisBT XSS in manage_custom_field_update.php

Medium 6.1 Published Updated

Attackers can inject malicious scripts via unsanitized custom field names in MantisBT, 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-2020-35571?

CVE-2020-35571 is a medium-severity cross-site scripting vulnerability in Mantisbt Mantisbt, published on 22 Feb 2021. 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

An issue was discovered in MantisBT through 2.24.3. In the helper_ensure_confirmed call in manage_custom_field_update.php, the custom field name is not sanitized. This may be problematic depending on CSP settings.

Weakness: CWE-79

Which versions are affected by CVE-2020-35571?

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

PackageAffectedFixed in
mantisbt/mantisbt PackagistAll versions2.25.0
mantisbt/mantisbt PackagistAll versions2.25.0

Products include Mantisbt Mantisbt.

How do I fix CVE-2020-35571?

Upgrade mantisbt/mantisbt to 2.25.0 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-2020-35571 being exploited?

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

All Mantisbt Mantisbt vulnerabilities

Sources

Also known as GHSA-cvrm-cr3m-qj92.

Is CVE-2020-35571 in your software?

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

Check your SBOMs for free