llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · nilsteampassnet/teampass

GHSA-MQ4W-P2GW-PQP4

LAPR: missing endpoint authorization lets any LAPR operator rotate arbitrary privileged Linux accounts and capture the resulting password

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
9.9
Crítica
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado corrección
Exposición87 dDesde la divulgación, 26 ago 2026, 12:15 a. m.
Detección85 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir de cerca
Monitorear y programar la remediación
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 total. No hay versión corregida: aplique mitigaciones.
Esto me da escalofríos… y tengo abrigo natural.Le tengo más miedo a esta CVE que a los lunes.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
26 ago 26
19 nov 26
21 nov 26
26 ago 26
17 sept 26
8 oct 26
30 oct 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-MQ4W-P2GW-PQP4 divulgada · CVSS 9.9 (GitHub)
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

The LAPR (Linux Account Password Rotation) module scopes managed *items* by folder, but never scopes *endpoints*. Any user holding the `can_manage_lapr` permission can attach a managed account to any enrolled endpoint — including endpoints whose SSH credential item lives in a folder they cannot read — and then trigger a rotation. The rotation worker reads the endpoint's SSH credential as `TP_USER` (server-side key chain, bypassing per-user folder ACLs), connects to the target host, changes the password of the Linux account named in the attacker's own item, and writes the newly generated password back into that item.

The result is a full privilege escalation from "LAPR operator with access to one folder" to "root on any enrolled Linux server".

Details

`laprAddAccount()` in `app/sources/lapr_accounts.queries.php` validates that the caller can write the item's folder, but its only endpoint validation is an existence-and-status check:

$endpoint = DB::queryFirstRow(
    'SELECT id, hostname, os_info, ssh_username, ssh_auth_method, ssh_credential_source
     FROM ' . prefixTable('lapr_endpoints') . ' WHERE id = %i AND status = %s',
    $endpointId,
    'active'
);

The same omission affects `laprStartRotation()`, `laprStartDiscover()` and `laprResetAccount()`, and the three list handlers (`laprListAccounts()`, `laprListEndpointsOptions()`, `laprListEndpoints()`) disclose every endpoint — hostname, port and SSH username included — to every LAPR operator.

That this is an oversight rather than a design decision is shown by `laprStartTest()` and `laprAddEndpoint()` in `app/sources/lapr_endpoints.queries.php`, which both verify `laprUserCanReadFolder()` on the credential item before using it. The check is simply absent once the endpoint is enrolled.

PoC
  1. Alice and Bob both hold `can_manage_lapr`. Alice enrolled endpoint `prod-db` (SSH credential item in a folder only Alice can read). Bob has no access to that folder.
  2. Bob creates an item in a folder he can write, with `login = root`.
  3. Bob calls `add_account` with `endpoint_id = <prod-db>` and `item_id = <his item>`. The endpoint check passes (the endpoint exists and is active).
  4. Bob calls `start_rotation`. The folder check passes — it inspects *his* item's folder.
  5. The worker decrypts `prod-db`'s SSH credential as `TP_USER`, connects, runs `chpasswd` for `root`, and stores the new root password in Bob's item.
  6. Bob reads root's password for a server he was never authorized to touch.
Impact

Horizontal and vertical privilege escalation leading to remote system compromise. Requires an authenticated TeamPass account with the `can_manage_lapr` flag and write access to at least one folder. Affects all installations with LAPR enabled (`lapr_enabled = 1`).

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

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:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
8.7/ 10Muy alto
Vector 8.7 (muy fácil) · sin evidencia de explotación.
Versiones

Versiones afectadas

3.2.2.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistnilsteampassnet/teampass
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/nilsteampassnet/TeamPass/security/advisories/GHSA-mq4w-p2gw-pqp4

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