What is Insufficient Session Expiration?
Insufficient Session Expiration is a security vulnerability where session duration is not adequately configured, allowing sessions to remain active for an extended period. This can enable attackers to exploit stolen sessions or allow unauthorized access even after a user has logged out.
Vulnerable Points of Occurrence
- All pages that require a session.
Vulnerability Verification Method
- Accessing the "My Page" while logged out to check if the session persists.
The attacker identifies that sessions are persisting for an extended period due to insufficient session expiration settings.
Even after a user logs out, if the session remains valid, the attacker can exploit the stolen session to access the application while impersonating the user.
The attacker can then perform illegal actions or abuse the user's privileges.
The user initiates a logout request to the application.
The application handles the logout request and expires the session.
However, due to insufficient session expiration settings, the session remains valid.
The attacker utilizes the stolen session to send requests to the application.
The application processes the attacker's request.
Implement proper session expiration settings. Set session validity periods and automatically expire sessions based on user inactivity.
Handle session expiration appropriately when a user logs out.