Descrizione
CallBackery versions before 0.62.0 for Perl accept session cookies of any age sent in the X-Session-Cookie header.
cookieConf() rejects a cookie older than 300 seconds only when it arrives in the xsc query parameter. The same cookie sent in the X-Session-Cookie header is accepted however old it is.
A session cookie that leaks through a log, a Referer header or browser history authenticates as its user indefinitely.
Tipo di vulnerabilità
CWE-1463
Insufficient Session Timeout Value
The product establishes an authenticated user session, but it does not properly set a timeout for the session. That is, the timeout is set to an excessively large value or is not set at all.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi, Integrità |
Ottenere privilegi o assumere un’altra identità |
Come si previene
Sviluppo
Ensure that user sessions have appropriate absolute timeouts set. The industry standard is between 4 and 8 hours for an absolute timeout.
Sviluppo
Ensure that user sessions have appropriate inactivity timeouts set. 2 to 5 minutes is recommended for high-value applications, and 15-30 minutes for low-risk applications.
Sviluppo
If using an authentication token for a user session, ensure that the token lifetime is configured based on the recommended best practices from the token provider. There are situations using authentication tokens such as a JWT (Java Web Token) in which the server-side does not handle session timeouts and trusts the values directly from the token. In this case, it is important that the timeout value is set correctly for the token that is granted.
Tutte le 3 CVE di tipo CWE-1463, con andamento e prevenzione