Check: SRG-APP-000224-WSR-000136
Web Server SRG:
SRG-APP-000224-WSR-000136
(in versions v4 r2 through v2 r2)
Title
The web server must generate unique session identifiers that cannot be reliably reproduced. (Cat II impact)
Discussion
Communication between a client and the web server is done using the HTTP protocol, but HTTP is a stateless protocol. In order to maintain a connection or session, a web server will generate a session identifier (ID) for each client session when the session is initiated. The session ID allows the web server to track a user session and, in many cases, the user, if the user previously logged into a hosted application. By being able to guess session IDs, an attacker can easily perform a man-in-the-middle attack. To truly generate random session identifiers that cannot be reproduced, the web server session ID generator, when used twice with the same input criteria, must generate an unrelated random ID. The session ID generator also needs to be a FIPS 140-2 approved generator.
Check Content
Review the web server documentation and deployed configuration to verify that random and unique session identifiers are generated. Access the web server ID generator function and generate two IDs using the same input. If the web server is not configured to generate random and unique session identifiers, or the ID generator generates the same ID for the same input, this is a finding.
Fix Text
Configure the web server to generate random and unique session identifiers that cannot be reliably reproduced.
Additional Identifiers
Rule ID: SV-206400r961119_rule
Vulnerability ID: V-206400
Group Title: SRG-APP-000224
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001188 |
Generate a unique session identifier for each session with organization-defined randomness requirements. |
Controls
Number | Title |
---|---|
SC-23(3) |
Unique Session Identifiers with Randomization |