CVE-2026-19565
Beschrijving NL
Apache::AppSamurai::Gebruik versies tot 1.01 voor Perl om voorspelbare sessie-authenticatiesleutels te genereren op basis van de klok en proces-id in CreateSessionAuthKey. CreateSessionAuthKey voert vijf ronden SHA-256 uit, elk over een nieuwe tijd:: HiRes-lezing geformatteerd tot zes decimalen, de lopende samenvatting en de proces-id. CreateSession roept het aan met een lege sleutelbron bij elke aanmelding en de optionele Keysource-richtlijn is de enige route naar de andere tak. Het resultaat is 64 hexadecimale tekens. Het microsecondeveld van de eerste aflezing neemt een van de miljoen waarden aan, de latere aflezingen volgen het binnen microseconden en de proces-id wordt uit een klein bereik getrokken. De sleutel wordt teruggestuurd naar de browser als de sessiecookie en wordt gecombineerd met de geconfigureerde serversleutel om de sessie-id te berekenen en de opgeslagen sessiegegevens te versleutelen. Een aanvaller die de seconde kent waarin een sessie is gemaakt en de proces-id van de werknemer die deze heeft gemaakt, kan kandidaatsleutels opsommen en de cookie van het slachtoffer herstellen, waarbij authenticatie voor de beschermde bronnen wordt omzeild. Elke kandidaat moet worden berecht tegen de server, die de cookie valideert met een sleutel die de aanvaller niet heeft.
Origineel (Engels) tonen
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.