Relationship Graph
View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037365 | mantisbt | security | public | 2026-08-31 23:52 | 2026-11-22 16:08 |
| Reporter | 360Alphalab | Assigned To | dregad | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.11 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037365: bug_file_delete.php lets users delete their own attachments even if they can no longer access the Issue | ||||
| Description | See automated translation in note 0037365:0071398 below.
下方条件判断是漏洞核心:当
跳过访问检查后,
| ||||
| Steps To Reproduce | 前提条件:管理员已将
其中 预期结果:返回 HTTP 302(删除成功,重定向到 Bug 详情页)。该附件从 | ||||
| Additional Information | 影响当 希望对该漏洞申请CVE编号。 | ||||
| Tags | No tags attached. | ||||
|
@360Alphalab Thanks for your report. As mentioned in 0037364, please note that nobody speaks Chinese here. In the future, kindly submit your reports in English. Another researcher identified a similar vulnerability in the SOAP API (same problem, different code path), see 0036981. Both code paths have recently been updated as part of resolution of 0034425. I did not test whether the refactored implementation fixes the issue, but I doubt it as the code looks very similar. Could you please test and confirm ? The new code will soon be released as 2.29.0, and is currently available in Git Master branch (or you can download a nightly build). Look for it in core/commands/IssueFileDeleteCommand.php. Please indicate how you would like to be credited for the finding, and provide your GitHub id so we can link it to the security advisory. Google translation
The following conditional statement is the core of the vulnerability: when
After skipping the access check,
The default value of Prerequisite: The administrator has set
Where Expected Result: HTTP 302 (Deletion successful, redirected to the bug details page). The attachment was removed from the ImpactWhen We request a CVE number for this vulnerability. |
|
|
Hello, after verification, we believe that the vulnerability still exists in 2.29.0. |
|
|
This bypass has existed since version 2.28.4 (it was when the check logic was inlined in |
|
|
Thanks for taking the time to analyze and confirm that the problem still exists in master. |
|
For the record, the problem is much older than 2.28.4. Looking at Git blame, the incorrect logic is actually present since 2012:
EDIT: we had 2 parallel release tracks at the time - added reference to 1.2.x 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. |
|
|
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