Apache AuthAny Cookie Insecure Session ID Generation Vulnerability

Vulnerability

A vulnerability exists in Apache::AuthAny::Cookie version 0.201 and earlier, where session IDs are generated insecurely. The session IDs are created using an MD5 hash of the epoch time combined with a call to the built-in rand function. This method is flawed as the epoch time can be guessed if not disclosed in the HTTP Date header, and the rand function is not suitable for cryptographic purposes. The predictability of these session IDs could potentially allow an attacker to gain unauthorized access to systems.

Impact

Exploitation of this vulnerability could lead to predictable session IDs, allowing attackers to hijack user sessions and gain unauthorized access to systems.

Reproduction

The vulnerability can be reproduced by logging into a system using Apache::AuthAny::Cookie version 0.201 or earlier. Once logged in, the session ID can be intercepted and predicted based on the epoch time and the rand function, which is not cryptographically secure. This predictable session ID can then be used to gain unauthorized access to the system.

Added: Sep 17, 2025, 3:21 PM
Updated: Sep 17, 2025, 6:28 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
8.4
remediation
0.0
relevance
0.5
threat
4.8
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.