Skip to content
Sharp

OWASP Vulnerabilities · interview question

How can a web application ensure that a CSRF token is unique for each session?

Multiple choiceEasychapter-17-curatedpremiumowasp-vulnerabilitiescross-site-request-forgery-csrf
Choose one answer
Answer and explanation

Correct answer

D. Use a random number generator for each session

Why

Using a random number generator ensures that each session has a unique CSRF token, making it difficult for attackers to predict or forge.

Test yourself on OWASP Vulnerabilities

A free test with instant, explained results. No account needed.

Start free test
All OWASP Vulnerabilities questions →