VDB
Sign up
MEDIUM6.5

GHSA-9x76-mp7r-2xc5

MantisBT vulnerable to CSRF and Open Redirect attacks

Quick fix

GHSA-9x76-mp7r-2xc5 — mantisbt/mantisbt: upgrade to the fixed version with the command below.

composer require mantisbt/mantisbt:^1.3.11

Details

MantisBT before 1.3.11, 2.x before 2.3.3, and 2.4.x before 2.4.1 omits a backslash check in string_api.php and consequently has conflicting interpretations of an initial \/ substring as introducing either a local pathname or a remote hostname, which leads to (1) arbitrary Permalink Injection via CSRF attacks on a permalink_page.php?url= URI and (2) an open redirect via a login_page.php?return= URI.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/mantisbt/mantisbt
Introduced in: 0Fixed in: 1.3.11
Fixcomposer require mantisbt/mantisbt:^1.3.11
Packagist/mantisbt/mantisbt
Introduced in: 2.0.0Fixed in: 2.3.3
Fixcomposer require mantisbt/mantisbt:^2.3.3
Packagist/mantisbt/mantisbt
Introduced in: 2.4.0Fixed in: 2.4.1
Fixcomposer require mantisbt/mantisbt:^2.4.1

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