VDB
Sign up
MEDIUM6.1

GHSA-98xr-mmq5-vc5h

MantisBT XSS allows unsanitized input via admin/install.php

Quick fix

GHSA-98xr-mmq5-vc5h — mantisbt/mantisbt: upgrade to the fixed version with the command below.

composer require mantisbt/mantisbt:^1.3.12

Details

An XSS issue was discovered in admin/install.php in MantisBT before 1.3.12 and 2.x before 2.5.2. Some variables under user control in the MantisBT installation script are not properly sanitized before being output, allowing remote attackers to inject arbitrary JavaScript code, as demonstrated by the $f_database, $f_db_username, and $f_admin_username variables. This is mitigated by the fact that the admin/ folder should be deleted after installation, and also prevented by CSP.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mantisbt/mantisbt
Introduced in: 0Fixed in: 1.3.12
Fixcomposer require mantisbt/mantisbt:^1.3.12
Packagist/mantisbt/mantisbt
Introduced in: 2.0.0Fixed in: 2.5.2
Fixcomposer require mantisbt/mantisbt:^2.5.2

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"]}'