CVE-2022-28508 MantisBT vulnerable to XSS via unescaped output in browser_search_plugin.php

Medium 6.1 Published Updated

An attacker can inject malicious scripts via the return parameter in the search plugin, 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
None listed

What is CVE-2022-28508?

CVE-2022-28508 is a medium-severity cross-site scripting vulnerability in Mantisbt Mantisbt, published on 4 May 2022. 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 XSS issue was discovered in browser_search_plugin.php in MantisBT before 2.25.2. Unescaped output of the return parameter allows an attacker to inject code into a hidden input field.

Weakness: CWE-79

Which versions are affected by CVE-2022-28508?

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

PackageAffectedFixed in
mantisbt/mantisbt PackagistAll versions to 2.25.2None
mantisbt/mantisbt PackagistAll versions to 2.25.2None

Products include Mantisbt Mantisbt.

How do I fix CVE-2022-28508?

No fix has been published for CVE-2022-28508 yet. Limit exposure of the affected software until one is available.

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-2022-28508 being exploited?

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

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Mantisbt Mantisbt vulnerabilities

Sources

Also known as GHSA-wfg2-2wmw-6894.

Is CVE-2022-28508 in your software?

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

Check your SBOMs for free