Skip to content
Sharp

OWASP Vulnerabilities · interview question

When configuring CSRF protection in a Spring Boot application, where should the CSRF token be placed in a form submission?

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

Correct answer

A. As a hidden input field

Why

CSRF tokens are typically included as hidden input fields within forms, allowing them to be submitted along with form data and validated on the server side.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →