OWASP Vulnerabilities · interview question
Why does the 'signature' in a JWT matter in this design?
Multiple choiceMediumchapter-17-curatedpremiumowasp-vulnerabilitiescross-site-scripting-xss
Answer and explanation
Correct answer
D. To verify the sender of the JWT
Why
The signature in a JWT is used to verify that the sender of the JWT is who it says it is and to ensure that the message wasn't changed along the way.
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?
- 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?
- How does Spring Security validate that a CSRF token is legitimate upon receiving a form submission?