
BNavin118206 (Community Member) asked a question.
The lack of proper session expiration may improve the likely success of certain attacks. For example, an attacker may intercept a session ID, possibly via a network sniffer or Cross-site Scripting attack. Although short session expiration times do not help if a stolen token is immediately used, they will protect against ongoing replaying of the session ID. In another scenario, a user might access a web site from a shared computer (such as at a library, Internet cafe, or open work environment). Insufficient Session Expiration could allow an attacker to use the browser's back button to access web pages previously accessed by the victim.
i used session timeout in web.xml already ,but getting issue again.please let me know
.png)
Hi @BNavin118206 (Community Member) ,
Veracode Static Analysis does currently not look at the web.xml for session timeouts. I recommend reviewing the OWASP Cheat Sheet on Session Management (https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html#session-expiration) which also provides some guidance on session expirations.
If proper session timeouts are in place, please propose a mitigation and discuss it with your security team. To know more about how to propose a mitigation, please review the following link: https://help.veracode.com/r/improve_mitigation
Thank you,
Florian Walter