GHSA-3HP4-XP89-724C
Logged hours on any ticket are readable across projects via JSON-RPC (Leantime 3.9.8)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-3HP4-XP89-724C divulgada · CVSS 4.3 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Description
### Summary
Two `Timesheets` service methods return the time logged against a ticket by ticket id alone, with no check that the caller can see that ticket's project. Any API user can read effort data for tickets in projects they are not a member of.
### Root cause
In `app/Domain/Timesheets/Services/Timesheets.php`, `getSumLoggedHoursForTicket(int $ticketId)` and `getLoggedHoursForTicketByDate(int $ticketId)` are marked `@api` but have no `#[RequiresPermission]` and no in-body authorization. They call the repository directly:
public function getLoggedHoursForTicketByDate(int $ticketId): array
{
return $this->timesheetsRepo->getLoggedHoursForTicket($ticketId);
}The repository query filters on `zp_timesheets.ticketId` only. There is no project or user scoping anywhere on the path, and the enforcer does not fire because the method has no permission attribute.
### Prerequisites
A JSON-RPC credential (an API key of any role, or a personal access token).
### Steps to reproduce
Ticket id 2 belongs to a project the read-only key is not a member of. It has 12.5 hours logged.
POST /api/jsonrpc HTTP/1.1
Host: localhost:5080
Content-Type: application/json
x-api-key: lt_burpreadonly_deadbeefdeadbeefdeadbeefdeadbeef
Content-Length: 121
{"jsonrpc":"2.0","id":4,"method":"leantime.rpc.Timesheets.Timesheets.getSumLoggedHoursForTicket","params":{"ticketId":2}}Response:
{"jsonrpc":"2.0","result":12.5,"id":4}<img width="1710" height="1112" alt="Screenshot 2026-07-15 at 9 46 30 PM" src="https://github.com/user-attachments/assets/3e36575a-6960-412c-82f8-0a61a54aef5e" />
`getLoggedHoursForTicketByDate` returns the same data broken out per day. Iterating `ticketId` reads effort across every project in the instance.
### Impact
Cross-project disclosure of timesheet effort. This leaks how much work is booked against tickets in projects and clients the caller has no access to, which can expose internal activity, staffing, and billing signals.
### Suggested fix
Resolve the ticket's owning project and authorize a timesheet-view permission against it before returning data, the same pattern the annotated Timesheets methods already use.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistleantime/leantime |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/Leantime/leantime/security/advisories/GHSA-3hp4-xp89-724cLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
