GHSA-PQQ8-JQ6G-3FHJ
Non-constant-time comparison of password reset token in PasswordResetService (CWE-208)
CVSS:3.1/AV:N/AC:H/PR:N/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-PQQ8-JQ6G-3FHJ divulgada · CVSS 3.7 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
### Summary
Poweradmin validates password reset tokens using PHP's native `===` operator instead of the constant-time `hash_equals()`, creating a timing side-channel (CWE-208).
### Details
File: lib/Application/Service/PasswordResetService.php:292
if ($token === $tokenData['token']) {
Every active password-reset token (bin2hex(random_bytes(32)), 256 bits of entropy) is compared against the presented token.
### PoC
Environment: Poweradmin (main branch), PHP 8.4.24, SQLite backend.
1. Inspect the code at the line above to confirm the use of ===.
2. A local microbenchmark (~20,000 trials) of === vs hash_equals() showed a small (~5ns), repeatable timing difference between early- and late-position mismatches for ===; hash_equals() showed flat timing.
No PoC for practical remote timing extraction is provided, as the mitigating factors below make it impractical.
### Impact
The token is 256 bits of cryptographically random data, and network jitter is far larger than the measured local signal (~5ns), so practical exploitation is very unlikely. Reported as a defense-in-depth issue.
### Suggested fix
if (hash_equals($tokenData['token'], $token)) { ... }
Split from GHSA-7fw5-qphw-gh3v.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistpoweradmin/poweradmin |
Corregida | 4.2.6, 4.3.5, 4.4.1 | — | — |
4.2.64.3.54.4.1Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/poweradmin/poweradmin/security/advisories/GHSA-pqq8-jq6g-3fhjLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
