Skip to content
Sharp

OWASP Vulnerabilities · interview question

In a Java web application using Spring Security, what is the primary mechanism for ensuring that a form submission is from the same client who initially requested the form?

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

Correct answer

D. CSRF token

Why

CSRF tokens are used to ensure requests originate from the original client by being included in forms and validated on submission, preventing third-party sites from forging requests.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →