MantisBT 2.28.3 and earlier versions contains a SQL injection vulnerability in core/history_api.php. The history_order configuration value is concatenated directly into a SQL ORDER BY clause without any sanitisation, parameterization, or validation against a whitelist.
An administrator can set this configuration value via the web UI (adm_config_set.php) or the REST API (PATCH /api/rest/config). The injected SQL then executes whenever any user views a bug with history entries.
Is there a way for users to fix or remediate the vulnerability without upgrading?
McCaulay Hudson (@McCaulay) of watchTowr
2.28.4Exploitability
AV:NAC:LAT:NPR:HUI:NVulnerable System
VC:HVI:HVA:NSubsequent System
SC:NSI:NSA:N8.5/CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NInjection