View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037059 | mantisbt | security | public | 2026-04-18 17:25 | 2026-11-22 16:08 |
| Reporter | ninjasec | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.0.0 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037059: Bulk Custom-Field Update Bypasses access_level_rw Enforcement | ||||
| Description | The bulk group-action handler bug_actiongroup.php processes action=CUSTOM (custom-field update) without verifying that the actor has write access to the targeted field. The normal single-bug update path (bug_update.php) calls custom_field_has_write_access() and aborts with ERROR_ACCESS_DENIED if the check fails. The bulk path skips this check entirely, allowing any user who can VIEW a bug to overwrite the value of any custom field - including those restricted to higher access levels - on any bug they can view. | ||||
| Steps To Reproduce | Preconditions:
| ||||
| Additional Information | Severity: Type: Affected code: Why it happens:
custom_field_set_value() does not check access_level_rw - it only validates the value format and writes directly to the database. The single-bug update path (bug_update.php) does enforce it:
Additionally, the CSRF token for all CUSTOM bulk actions is keyed to bug_actiongroup_CUSTOM regardless of which custom field is targeted. A user who legitimately has write access to any low-access custom field can obtain this token and then reuse it in a forged request targeting a higher-access field. The UI in core/bug_group_action_api.php line 317 does filter the dropdown to only show fields the user has write access to, but this is a client-side gate with no corresponding server-side enforcement. Impact: | ||||
| Tags | No tags attached. | ||||
|
Issue has been independently confirmed by another security researcher (@kanokwut, see 0037371). |
|
|
Advisory https://github.com/mantisbt/mantisbt/security/advisories/GHSA-5xh9-366r-7965 created and CVE request sent (on 2026-09-11). |
|
|
MantisBT: master 68eb1d3b 2026-09-07 12:29 Details Diff |
Prevent unauthorized bulk custom field update Add an access check in bug_actiongroup to prevent a user from changing a custom field's value if updating it is restricted in the definition (access_level_rw). Fixes 0037059, GHSA-5xh9-366r-7965 |
Affected Issues 0037059 |
|
| mod - bug_actiongroup.php | Diff File | ||
| mod - bug_actiongroup_page.php | Diff File | ||