Session ID in URL

Session ID in URL

Category: Security Misconfiguration

Severity: Medium

Description

Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing session tokens into the URL increases the risk that they will be captured by an attacker.

Impact

  • Sensetive data exposure

Remediation

Applications should use an alternative mechanism for transmitting session tokens, such as HTTP cookies or hidden fields in forms that are submitted using the POST method.

https://portswigger.net/kb/issues/00500700_session-token-in-url#:~:text=Description%3A%20Session%20token%20in%20URL&text=URLs%20may%20also%20be%20displayed,be%20captured%20by%20an%20attacker.

Last updated