GitHub Advisoryadvisory · Packagist
GHSA-wgx7-jp56-65mq Mantis Bug Tracker (MantisBT) vulnerable to cross-site scripting
MEDIUM
Official page ↗
- Aliases
- CVE-2024-34081
- Ecosystem
- Packagist
- Packages
- mantisbt/mantisbt
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
- Weaknesses
- CWE-79
- Reviewed
- 2024-05-13
Affected packages
• Packagist mantisbt/mantisbt: < 2.26.2 → fixed in 2.26.2
Description
Improper escaping of a custom field's name allows an attacker to inject HTML and, if CSP settings permit, achieve execution of arbitrary JavaScript when:
• resolving or closing issues (bug_change_status_page.php) belonging to a project linking said custom field
• viewing issues (view_all_bug_page.php) when the custom field is displayed as a column
• printing issues (print_all_bug_page.php) when the custom field is displayed as a column
Impact
Cross-site scripting (XSS).
Patches
https://github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be
Workarounds
Ensure Custom Field Names do not contain HTML tags.
References
• https://mantisbt.org/bugs/view.php?id=34432
• This is related to CVE-2020-25830 (same root cause, different affected pages)
Related
Alias · CVE (1)
- CVE-2024-34081 MantisBT (Mantis Bug Tracker) is an open source issue tracker. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/mantisbt/mantisbt/security/advisories/GHSA-wgx7-jp56-65mq web
- https://nvd.nist.gov/vuln/detail/CVE-2024-34081 advisory
- https://github.com/mantisbt/mantisbt/commit/447a521aae0f82f791b8116a14a20e276df739be web
- https://github.com/mantisbt/mantisbt package
- https://mantisbt.org/bugs/view.php?id=34432 web