QID 153003
Date Published: 2023-07-25
QID 153003: Ruby On Rails - Insufficient Session Expiration
Session timeout is the period of inactivity after which a user's session on a website or application is automatically ended, requiring them to log in again for security reasons.
QID detected that the web application is using a overly long session timeout.
A long expiration time increases an attacker's chance of successfully guessing a valid session ID. The longer the expiration time, the more concurrent open sessions will exist at any given time. The larger the pool of sessions, the more likely it will be for an attacker to guess one at random. Although a short session inactivity timeout does not help if a token is immediately used, the short timeout helps to insure that the token is harder to capture while it is still valid.
Session timeouts greater than 30 minutes are not recommended as they provide attackers more time to complete attacks and exploits. Specifically, overly long sessions make applications more susceptible to session hijacking and cross-user web attacks, such as Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS).
CVEs related to QID 153003
| Advisory ID | Software | Component | Link |
|---|