View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037219 | mantisbt | security | public | 2026-05-31 18:33 | 2026-07-06 04:14 |
| Reporter | xananasx7 | Assigned To | community | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | resolved | Resolution | fixed | ||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037219: Security: Add allowed_classes => false to unserialize() calls to prevent PHP Object Injection | ||||
| Description | The following functions call unserialize() without specifying allowed_classes:
This leaves them potentially vulnerable to PHP Object Injection (POI) via gadget Fix: Add ['allowed_classes' => false] as a defence-in-depth hardening measure. GitHub PR with the fix: https://github.com/mantisbt/mantisbt/pull/2229 | ||||
| Tags | No tags attached. | ||||
|
MantisBT: master e423fd3e 2026-07-06 04:12 XananasX Committer: community Details Diff |
Add allowed_classes restriction to unserialize() calls Add `allowed_classes => false` to unserialize() in filter_api.php and email_queue_api.php. Add $p_options parameter to safe_unserialize(). Update 3 safe_unserialize() calls in install_helper_functions_api.php to pass `['allowed_classes' => false]`, consistent with the changes in filter_api.php and email_queue_api.php. Fixes 0037219, PR https://github.com/mantisbt/mantisbt/pull/2229 Co-authored-by: XananasX7 <xananasX7@users.noreply.github.com> |
Affected Issues 0037219 |
|
| mod - core/email_queue_api.php | Diff File | ||
| mod - core/filter_api.php | Diff File | ||
| mod - core/install_helper_functions_api.php | Diff File | ||
| mod - core/utility_api.php | Diff File | ||