Spring Boot Misconfiguration: Unsafe value for session tracking

Severity: Medium

Invicti detected that the web application is configured to support session tracking by cookies and URLs. The session tracking by URL is also known as "URL rewriting" wherein you see the jsessionid=id to appear in URLs. This will be triggered automatically when the client has cookies disabled. It's recommended to disable tracking by URL, and explicitly specify a tracking mode by cookie only.


If the session id is stored in a URL parameter it could be inadvertently saved in a number of locations including the browser history, proxy server logs, referrer logs, web logs, etc. Accidental disclosure of the session id makes the application more vulnerable to session hijacking attacks.

Actions To Take#

Change the value for server.servlet.session.tracking-modes in Spring properties file:


Build your resistance to threats. And save hundreds of hours each month.

Get a demo See how it works