GHSA-h2wf-967x-gxvw
MantisBT: Stored XSS in print_all_bug_page_word.php
Quick fix
GHSA-h2wf-967x-gxvw — mantisbt/mantisbt: upgrade to the fixed version with the command below.
composer require mantisbt/mantisbt:^2.28.4Details
A missing output encoding call in print_all_bug_page_word.php allows any authenticated user to inject arbitrary HTML into an IMG tag's *alt* attribute via an image attachment with a crafted filename such as `probe." onload="alert(1)`.
When any user views the HTML export page (print_all_bug_page_word.php?type_page=html&export=1), the rendered IMG tag becomes `<img src="..." alt="" onload="alert(1)" />`, breaking out of the alt attribute.
### Impact Cross-site scripting.
Impact is limited by MantisBT's Content Security Policy.
### Patches - https://github.com/mantisbt/mantisbt/commit/bdd0e364f62759de272dfd4c89b4f51d27be9daa
### Workarounds None
### Resources - https://mantisbt.org/bugs/view.php?id=37234
### Credits MantisBT thanks the [Dracosec Research Limited](https://dracosec.tech/) team (Chris Chan, Krecendo Hui, William Lam) for discovering and responsibly reporting the issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.28.4composer require mantisbt/mantisbt:^2.28.4References
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"]}'