ADVISORIES

GitHub Advisory Database

GHSA-9x76-mp7r-2xc5

MantisBT vulnerable to CSRF and Open Redirect attacks

Moderate CVE-2017-7620

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.

Affected packages

EcosystemPackageAffected versions
Packagistmantisbt/mantisbt
All versions before 1.3.11 (fixed in 1.3.11)
Packagistmantisbt/mantisbt
From 2.0.0 before 2.3.3 (fixed in 2.3.3)
Packagistmantisbt/mantisbt
From 2.4.0 before 2.4.1 (fixed in 2.4.1)

References