Skip to content
Sharp

OWASP Vulnerabilities · interview question

How would you explain a potential limitation of using only CSRF tokens for preventing CSRF attacks in an interview?

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

Correct answer

C. They do not protect against cross-site scripting (XSS)

Why

CSRF tokens do not protect against XSS. If an attacker can inject scripts into a page, they might steal CSRF tokens and perform actions on behalf of users.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →