Unsafe value for session tracking in WEB-INF/web.xml

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 tracking-mode in WEB-INF/web.xml to make sure the JSESSIONID is stored in a cookie:


Search Vulnerability

Invicti Logo

Dead accurate, fast & easy-to-use Web Application Security Scanner

Get a demo