llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · leantime/leantime

GHSA-3HP4-XP89-724C

Logged hours on any ticket are readable across projects via JSON-RPC (Leantime 3.9.8)

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
4.3
Media
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición49 dDesde la divulgación, 2 oct 2026, 10:34 a. m.
Detección47 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, no automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Esto lo arregla la rutina de siempre.Esto no amerita reunión. Un ticket basta.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Monitoreo
Detectada +1
2 oct 26
6 oct 26
19 nov 26
21 nov 26
2 oct 26
15 oct 26
27 oct 26
9 nov 26
21 nov 26
FechaFaseEventoDetalle
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
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
8.3/ 10Alto
Vector 8.3 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
leantime/leantime≤ 3.9.8
3.9.8
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistleantime/leantime
Sin parche — — —
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/Leantime/leantime/security/advisories/GHSA-3hp4-xp89-724c

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.