Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why can relying solely on CSRF tokens for protecting against CSRF attacks become a problem in production code?

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

Correct answer

B. Tokens can be leaked through referer headers

Why

CSRF tokens can be leaked through referer headers or other means if not properly protected, suggesting that additional measures, such as SameSite cookies, may be needed for comprehensive protection.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →