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

GHSA-H25R-8CC9-2CG8

LAPR: SSH host key is verified after authentication, disclosing the privileged SSH credential to a man-in-the-middle

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
9.0
Crítica
CVSS:3.1/AV:N/AC:H/PR:N/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 en un informe de auditoría se ve feísimo.Huele a exploit funcional. Y yo de olores sé.
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-H25R-8CC9-2CG8 divulgada · CVSS 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

`LAPRSshService::connect()` authenticates to the remote host before the TOFU host key fingerprint is ever computed or compared. When an attacker is able to intercept the connection (ARP/DNS spoofing, a compromised network segment, a hijacked IP), the SSH password is transmitted to the impostor server and the mismatch is only detected afterwards — too late.

Because the credential used by LAPR is by construction a privileged account (root, or an account with passwordless `sudo` for `chpasswd`), a single intercepted rotation hands the attacker a reusable privileged credential for the real target.

Details

In `app/includes/libraries/teampassclasses/lapr/src/LAPRSshService.php`, `connect()` calls `$ssh->login()` (which sends the credential) and only then sets `$this->ssh`, which is the precondition for `getFingerprint()`:

$authenticated = $ssh->login($username, $secret);   // credential already on the wire
...
$this->ssh = $ssh;
return ['success' => true, 'fingerprint' => $this->getFingerprint() ?? ''];

The only TOFU comparison lives in the *caller*, `app/scripts/traits/LAPRRotationTrait.php`, after `connect()` has already returned:

if ((int) $account['ssh_hostkey_verified'] === 1) {
    $currentFp = (string) $service->getFingerprint();
    ...
}

`app/scripts/traits/LAPRDiscoverTrait.php` performs no fingerprint comparison at all, so a discovery scan always leaks the credential to whatever host answers.

phpseclib3 makes no trust decision on its own; `SSH2::getServerPublicHostKey()` performs the key exchange and validates the host key signature without authenticating, so the fingerprint is available *before* `login()` is called. The check was simply placed on the wrong side of the authentication step.

PoC
  1. Endpoint `prod-app` is enrolled with password authentication and `ssh_hostkey_verified = 1`.
  2. An attacker on the path redirects the endpoint's hostname/IP to a host running their own sshd.
  3. A scheduled rotation fires. `connect()` runs the key exchange against the impostor and calls `login()`, sending the plaintext SSH password.
  4. The impostor logs the credential; TeamPass then detects the fingerprint mismatch and aborts.
  5. The attacker now holds a valid privileged SSH credential for the real `prod-app`. Every subsequent scheduled rotation re-exposes it with no user interaction.
Impact

Disclosure of a privileged SSH credential to a network-positioned attacker, leading to remote system compromise. Password authentication (the default) is fully affected. Key authentication is materially less severe — the private key itself is not disclosed — but the connection is still established with an unverified host.

Requires the attacker to be able to intercept traffic between the TeamPass server and the managed endpoint. Affects all installations with LAPR enabled.

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:H
BajaAlta
PrivilegiosPR:N
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
7.1/ 10Alto
Vector 7.1 (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-h25r-8cc9-2cg8

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