Threats, Vulnerabilities, and Attacks
A web application passes the user's session token in the URL query string instead of a cookie. What is the main risk?
Show the answer
Correct answerD. The token leaks through browser history, logs and referrer headers
AWhy not this: A token in a URL is not stored like a cookie, and the browser does not block it.
BWhy not this: Placing a token in a URL has no effect on whether scripts run.
CWhy not this: Password managers store usernames and passwords, not session tokens in URLs.
DWhy this is right: URLs are logged and passed in Referer headers, so a token there can be read and reused by others.
URLs are recorded in browser history, proxy and server logs, and Referer headers, so a token in the URL is exposed to anyone who can read them. Password managers store credentials, not session tokens.