View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036977 | mantisbt | security | public | 2026-03-17 05:52 | 2026-05-09 19:56 |
| Reporter | ninjasec | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.28.1 | ||||
| Target Version | 2.28.2 | Fixed in Version | 2.28.2 | ||
| Summary | 0036977: CVE-2026-34744: Authorization bypass allows users to read their own attachments after losing access to a private issue | ||||
| Description | MantisBT permits a user to continue listing and downloading their own attachment from an issue after that issue becomes private and direct issue access is denied. The attachment visibility logic allows a fallback for the uploader when allow_view_own_attachments or In the tested instance, a low-privileged reporter user uploaded a file to issue 2 while it was public. After the issue was changed to private, the same user was correctly denied access to view.php?id=2, but could still:
This creates a post-access-loss disclosure path where issue attachment content remains accessible even though the parent issue is no longer viewable. Affected Code
Root Cause file_can_view_or_download() first checks normal bug-level or bugnote-level access. If that fails, it falls back to: This means attachment ownership is treated as sufficient for continued access, even when the user no longer has access to the issue itself. | ||||
| Steps To Reproduce |
Response
| ||||
| Tags | No tags attached. | ||||
|
Vulnerability is confirmed - REST API Advisory created https://github.com/mantisbt/mantisbt/security/advisories/GHSA-rmp5-5jj7-gmvf and CVE request sent. |
|
|
Proposed patch is available at https://github.com/mantisbt/mantisbt-ghsa-fvjf-68wh-rwp2/pull/1/commits/42a70a2914a10067fd524b7d80358395f35654ed (note that the private repo is linked to another advisory; I did that to minimize effort as I'm working on several security issues from the same researcher in parallel). |
|
|
CVE-2026-34744 assigned |
|
|
MantisBT: master-2.28 de7bdeec 2026-03-30 11:42 Details Diff |
Prevent access to private issues' file attachments Adding access checks ensuring that the user is allowed to view the attachments' parent issue, before listing or downloading them: - file_can_view_or_download() function - IssueFileGetCommand::validate() method Fixes 0036977, GHSA-rmp5-5jj7-gmvf |
Affected Issues 0036977 |
|
| mod - core/commands/IssueFileGetCommand.php | Diff File | ||
| mod - core/file_api.php | Diff File | ||