Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why is it important to validate the 'exp' claim in a JWT?

Multiple choiceHardchapter-17-curatedpremiumowasp-vulnerabilitiessql-injection
Choose one answer
Answer and explanation

Correct answer

A. To ensure the token has not expired

Why

Validating the 'exp' claim ensures the token is still valid and has not expired, preventing unauthorized access using old tokens. This is crucial for maintaining security and session integrity.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →