Check: SRG-APP-000223-WSR-000145
Web Server SRG:
SRG-APP-000223-WSR-000145
(in versions v4 r2 through v2 r2)
Title
The web server must accept only system-generated session identifiers. (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. When a web server accepts session identifiers that are not generated by the web server, the web server creates an environment where session hijacking, such as session fixation, could be used to access hosted applications through session IDs that have already been authenticated. Forcing the web server to only accept web server-generated session IDs and to create new session IDs once a user is authenticated will limit session hijacking.
Check Content
Review the web server documentation and deployed configuration to determine whether the web server accepts session IDs that are not system-generated. If the web server does accept non-system-generated session IDs, this is a finding.
Fix Text
Configure the web server to only accept session IDs that are created by the web server.
Additional Identifiers
Rule ID: SV-206398r961116_rule
Vulnerability ID: V-206398
Group Title: SRG-APP-000223
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001664 |
Recognize only session identifiers that are system-generated. |
Controls
Number | Title |
---|---|
SC-23(3) |
Unique Session Identifiers with Randomization |