Skip to content
Sharp

OWASP Vulnerabilities · interview question

How would you explain a common method for checking the validity of a CSRF token upon receiving a request in an interview?

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

Correct answer

D. Comparing the token with a server-side stored token

Why

A common method is to compare the CSRF token sent with the request against the token stored on the server for the user's session, ensuring they match.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →