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
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.
More OWASP Vulnerabilities questions
- How would you explain a potential limitation of using only CSRF tokens for preventing CSRF attacks in an interview?
- In a Spring Security filter chain, what is the purpose of filters?
- What role does the 'Signature' play in a JWT?
- Why does the 'signature' in a JWT matter in this design?
- How would you explain a key strategy Java web applications use to protect against Stored XSS attacks in an interview?
- Which of the following best describes a CSRF attack?