CVE-2026-19565

Apache::AppSamurai::Util versions through 1.01 for Perl generate predictable session authentication keys from the clock and process id in CreateSessionAuthKey. CreateSessionAuthKey runs five rounds of SHA-256, each over a fresh Time::HiRes reading formatted to six decimal places, the running digest, and the process id. CreateSession calls it with an empty key source on every login, and the optional Keysource directive is the only route to the other branch. The result is 64 hex characters. The microsecond field of the first reading takes one of a million values, the later readings follow it within microseconds, and the process id is drawn from a small range. The key is returned to the browser as the session cookie, and is combined with the configured server key to compute the session id and to encrypt the stored session data. An attacker who knows the second in which a session was created and the process id of the worker that created it can enumerate candidate keys and recover the victim's cookie, bypassing authentication for the protected resources. Each candidate has to be tried against the server, which validates the cookie with a key the attacker does not hold.
Configurations

No configuration.

History

14 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) Las versiones de Apache::AppSamurai::Util hasta la 1.01 para Perl generan claves de autenticación de sesión predecibles a partir del reloj y el ID de proceso en CreateSessionAuthKey. CreateSessionAuthKey ejecuta cinco rondas de SHA-256, cada una sobre una lectura nueva de Time::HiRes formateada a seis decimales, el resumen en ejecución y el ID de proceso. CreateSession lo llama con una fuente de clave vacía en cada inicio de sesión, y la directiva opcional Keysource es la única ruta a la otra rama. El resultado son 64 caracteres hexadecimales. El campo de microsegundos de la primera lectura toma uno de un millón de valores, las lecturas posteriores lo siguen en microsegundos, y el ID de proceso se extrae de un rango pequeño. La clave se devuelve al navegador como la cookie de sesión, y se combina con la clave de servidor configurada para calcular el ID de sesión y para cifrar los datos de sesión almacenados. Un atacante que conoce el segundo en que se creó una sesión y el ID de proceso del trabajador que la creó puede enumerar claves candidatas y recuperar la cookie de la víctima, eludiendo la autenticación para los recursos protegidos. Cada candidato debe ser probado contra el servidor, que valida la cookie con una clave que el atacante no posee.

Information

Published : 2026-08-23 20:16

Updated : 2026-10-14 13:10


NVD link : CVE-2026-19565

Mitre link : CVE-2026-19565

CVE.ORG link : CVE-2026-19565


JSON object : View

Products Affected

No product.

CWE
CWE-341

Predictable from Observable State