View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0037027 | mantisbt | security | public | 2026-04-18 16:55 | 2026-11-22 16:08 |
| Reporter | ninjasec | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.28.1 | ||||
| Target Version | 2.29.0 | Fixed in Version | 2.29.0 | ||
| Summary | 0037027: Clone Issue Copies Hidden Private-Note Attachments Into a Visible Child Issue | ||||
| Description | Summary:
Affected code:
Why it happens:
| ||||
| Steps To Reproduce | PoC setup:
Observed control result:
PoC request:
Observed result:
Verification:
Observed result:
Observed response fragments:
Observed result:
Impact:
| ||||
| Tags | No tags attached. | ||||
| has duplicate | 0037499 | closed | dregad | Authorization bypass: cloning an issue copies attachments from private bugnotes (CWE-862) |
| has duplicate | 0037096 | closed | dregad | Private Bugnote Files Disclosure via Issue Cloning or Bulk Copying |
| has duplicate | 0037505 | closed | dregad | A private note's attachment can be downloaded from a copy or clone of the issue |
| related to | 0037506 | closed | dregad | bug_copy() does not update the source Issue's last_updated date |
| related to | 0037507 | resolved | dregad | file_copy() function declaration triggers deprecation notice on PHP 8.4 and later |
|
The vulnerability is confirmed. It has been reported by other security researchers too (see 0037096, 0037499). |
|
|
Advisory https://github.com/mantisbt/mantisbt/security/advisories/GHSA-jpf2-wjmq-x6cf created and CVE request sent. |
|
|
MantisBT: master 28751247 2026-11-15 11:24 Details Diff |
file_copy_attachments() now populates bugnote_id Failure to do so could result in attachments linked to private bugnotes to be copied as issue-level (public) attachments, even when the copy operation is performed by an unprivileged user that does not have access to private notes and could therefore not see the files attached to them. Fixes 0037027 |
Affected Issues 0037027 |
|
| mod - core/file_api.php | Diff File | ||
|
MantisBT: master c51801bb 2026-11-15 11:54 Details Diff |
Only copy issue-level attachments This prevents creation of orphaned attachments linked to the new bug id and the old bug's notes. file_copy_attachments() is called in the context of copying an issue, but it is not able to handle bugnote-level attachments as it does not know about the new IDs of cloned notes. Fixes 0037027 |
Affected Issues 0037027 |
|
| mod - core/file_api.php | Diff File | ||
|
MantisBT: master 3833f80d 2026-11-15 13:02 Details Diff |
Add method BugnoteData::create() Inserts a new bugnote into the database from the BugnoteData object. Adapt bugnote_add() to use the new method. Issue 0037027 |
Affected Issues 0037027 |
|
| mod - core/bugnote_api.php | Diff File | ||
|
MantisBT: master 2bc5ee47 2026-11-15 18:05 Details Diff |
Add file_copy() function Copies a single bug or bugnote attachment. Issue 0037027 |
Affected Issues 0037027 |
|
| mod - core/file_api.php | Diff File | ||
|
MantisBT: master 95c7c231 2026-11-15 18:08 Details Diff |
Add bugnote_copy() to clone a bugnote with attachments Issue 0037027 |
Affected Issues 0037027 |
|
| mod - core/bugnote_api.php | Diff File | ||
|
MantisBT: master 1de22524 2026-11-15 19:08 Details Diff |
New IssueAddCommand::$clone_info property Initializing the array with defaults values for the expected entries when retrieving the option in the validate() method avoids repeated isset() calls in process(). Issue 0037027 |
Affected Issues 0037027 |
|
| mod - core/commands/IssueAddCommand.php | Diff File | ||
|
MantisBT: master afdfc64c 2026-11-15 19:09 Details Diff |
Only copy visible bugnotes when cloning issue - From bug_report.php (IssueAddCommand) - via bug_actiongroup.php (bug_copy() function) Instead of executing SQL statements: - Call bugnote_get_all_visible_bugnotes() to retrieve the notes to copy - Use new bugnote_copy() function to copy them (including attachments) Fixes 0037027 |
Affected Issues 0037027 |
|
| mod - core/bug_api.php | Diff File | ||
| mod - core/commands/IssueAddCommand.php | Diff File | ||