| Titel | osTicket 1.18.4 Authorization Bypass |
|---|
| Beschreibung | Product: osTicket (open-source ticket system), version 1.18.4 (current latest).
Broken Access Control / IDOR (CWE-862) in the staff TASKS preview endpoint. Any authenticated agent - lowest privileges, no role permissions - can enumerate GET /scp/ajax.php/tasks/{id}/preview and read metadata of ANY task in ANY department, including tasks they are explicitly not authorized to access. The server-side permission check exists but only produces a warning banner; the task data is rendered anyway.
Vulnerable code (v1.18.4): include/ajax.tasks.php preview() lines 181-190 - the source comment literally reads "// No perm. check -- preview allowed for staff"; the lookup is only Task::lookup($tid). The template include/staff/templates/task-preview.tmpl.php renders a "You do not have access to this task" warning when checkStaffPerm() fails but DOES NOT RETURN, and continues rendering: task title, status, created/due/completed timestamps, assigned agent/team names, department name, and the full collaborator list (names + emails = PII). Sequential task IDs are trivially enumerable, yielding org-wide task metadata and collaborator PII.
Compare with the equivalent ticket endpoint (previewTicket, include/ajax.tickets.php:287-295) which correctly returns 404 on failed permission - showing the task path is an omission, not a design choice.
NOT A DUPLICATE:
(1) A similar task-preview flaw was reported by UmerAdeemCheeva in 2024 ("Unauthorized Access to Ajax Functions") and claimed fixed in v1.17.6/v1.18.2. This submission demonstrates the CURRENT LATEST v1.18.4 is STILL affected - the earlier fix is incomplete (it added the warning banner without stopping the data disclosure).
(2) CVE-2026-14871 is the TICKET-management subsystem (ajax.tickets.php, fixed in 1.18.4); this finding is the TASKS subsystem (ajax.tasks.php) and reproduces on 1.18.4 where that fix is present.
PROOF OF CONCEPT (verified on v1.18.4 local deployment):
Setup: task #1 created in restricted department "Maintenance" (dept_id=3). Attacking agent: isadmin=0, primary dept 1, no dept-3 access.
GET /scp/ajax.php/tasks/1/preview (session of the low-privilege agent)
-> HTTP 200, 1397 bytes. The response contains BOTH the access-denied banner AND the leaked data in the same body:
<div id="msg_warning">You do not have access to this task</div>
... Task #1 Task Summary
Status: Open
Created: 11/8/26 7:50 PM
Assigned To: - Unassigned -
Department: Maintenance <- restricted-department metadata disclosed
[+ collaborator names and emails per template lines 100-110]
SUGGESTED REPAIR:
1. In preview() (include/ajax.tasks.php:181-190) enforce: if (!$task->checkStaffPerm($thisstaff)) Http::response(404, 'Unknown or inaccessible task'); - mirroring previewTicket.
2. In task-preview.tmpl.php, return after rendering the warning instead of continuing.
REFERENCES:
- Vulnerable code in v1.18.4: https://github.com/osTicket/osTicket/blob/v1.18.4/include/ajax.tasks.php
- Vendor: https://osticket.com/ | Source: https://github.com/osTicket/osTicket |
|---|
| Benutzer | kingkingqc (UID 102826) |
|---|
| Einreichung | 08.11.2026 06:58 (vor 25 Tagen) |
|---|
| Moderieren | 03.12.2026 08:56 (25 days later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 448576 [osTicket bis 1.17.8/1.18.4 Staff Task Preview Endpoint include/ajax.tasks.php preview erweiterte Rechte] |
|---|
| Punkte | 17 |
|---|