Relationship Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036981 | mantisbt | security | public | 2026-03-17 17:03 | 2026-11-22 16:08 |
| Reporter | ninjasec | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.11 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0036981: SOAP Own-Attachment Delete After Issue Access Is Lost | ||||
| Description | When allow_delete_own_attachments is enabled, the SOAP attachment deletion path permits an attachment owner to delete their file without requiring continued access to the parent issue. If issue visibility is later revoked, the attachment owner can still remove the file through mc_issue_attachment_delete(). Prerequisites
| ||||
| Steps To Reproduce | Steps to Reproduce
| ||||
| Tags | No tags attached. | ||||
| related to | 0014016 | closed | atrol | CVE-2012-2692 Users with access level >= update_bug_threshold can delete any attachment |
| related to | 0034425 | closed | vboctor | Delete attachment via REST |
| related to | 0037365 | closed | dregad | bug_file_delete.php lets users delete their own attachments even if they can no longer access the Issue |
|
Similar problem from Mantis UI: 0037365 Origin of the problem is 0014016 (1.2.11); code path was updated by 0034425, @ninjasec could you please confirm whether the problem is still present in Git master branch ? |
|
|
Advisory GHSA-9p8q-vwgp-hx32 created and CVE request sent. Please review the proposed fix in the advisory's private repository, testing and feedback would be appreciated. |
|
|
Hi @dregad, How are you? I was away for a while (For months) and I dont remember where we were talking :( |
|
|
Welcome back. I'm still (slowly) working through your numerous vulnerability reports. I must admit that the sheer size of the pile of work is somewhat disheartening. So far about 20% are fixed, 7% (6) are pending 2.29.0 release (I keep pushing that back for lack of time) and the rest are in the backlog. |
|
|
MantisBT: master 0b504b0a 2026-09-05 12:43 Details Diff |
Prevent attachment delete by owner without issue access When $g_allow_delete_own_attachments = ON, an attachment's owner was able to delete it even when they no longer had no access to the Issue (e.g. if it was moved to a private project). Adding a check in IssueFileDeleteCommand::validate() to ensure that the user can view the Issue. Regrouped the 2 ifs into a single conditional expression, improved the variables' names and negated the boolean logic, to make it easier to understand. Fixes 0036981, 0037365, GHSA-9p8q-vwgp-hx32 |
Affected Issues 0036981, 0037365 |
|
| mod - core/commands/IssueFileDeleteCommand.php | Diff File | ||
related to
child of
duplicate of