Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why does a CSRF token in a web application matter in practice?

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

Correct answer

B. To prevent malicious sites from performing actions on behalf of users

Why

A CSRF token is used to prevent Cross-Site Request Forgery attacks by ensuring that a malicious site cannot perform actions on behalf of a user without the token.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →