Skip to content
Sharp

OWASP Vulnerabilities · interview question

In a scenario where a CSRF token is leaked via a referer header, which action should be taken to mitigate this vulnerability?

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

Correct answer

D. Regenerate the CSRF token periodically

Why

Regenerating CSRF tokens periodically can mitigate token leakage by ensuring that old tokens are invalidated and cannot be used by an attacker.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →