VDB
Sign up
MEDIUM4.8

GHSA-x53v-v9xp-gf6g

MantisBT XSS via move_attachments_page.php

Quick fix

GHSA-x53v-v9xp-gf6g — mantisbt/mantisbt: upgrade to the fixed version with the command below.

composer require mantisbt/mantisbt:^1.3.9

Details

A cross-site scripting (XSS) vulnerability in the MantisBT Move Attachments page (move_attachments_page.php, part of admin tools) allows remote attackers to inject arbitrary code through a crafted 'type' parameter, if Content Security Protection (CSP) settings allows it. This is fixed in 1.3.9, 2.1.3, and 2.2.3. Note that this vulnerability is not exploitable if the admin tools directory is removed, as recommended in the "Post-installation and upgrade tasks" of the MantisBT Admin Guide. A reminder to do so is also displayed on the login page.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mantisbt/mantisbt
Introduced in: 0Fixed in: 1.3.9
Fixcomposer require mantisbt/mantisbt:^1.3.9
Packagist/mantisbt/mantisbt
Introduced in: 2.0.0Fixed in: 2.1.3
Fixcomposer require mantisbt/mantisbt:^2.1.3
Packagist/mantisbt/mantisbt
Introduced in: 2.2.0Fixed in: 2.2.3
Fixcomposer require mantisbt/mantisbt:^2.2.3

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:composer/mantisbt/mantisbt"]}'