Skip to content
Sharp

OWASP Vulnerabilities · interview question

How would you explain a common method to protect against CSRF attacks in web applications in an interview?

Multiple choiceEasychapter-17-curatedpremiumowasp-vulnerabilitiescross-site-scripting-xss
Choose one answer
Answer and explanation

Correct answer

B. Using CSRF tokens

Why

CSRF tokens are unique tokens generated by the server and included in each client request to ensure the request is legitimate and not forged.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →