Skip to content
Sharp

OWASP Vulnerabilities · interview question

In a Spring web application, where should the CSRF token be included to ensure request validation?

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

Correct answer

D. In the request body

Why

CSRF tokens are typically included in the request body to ensure that they are submitted with form data, which helps validate the legitimacy of the request.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →