Skip to content
Sharp

OWASP Vulnerabilities · interview question

Why does a JWT's 'alg' field matter in this design?

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

Correct answer

C. Specifies the algorithm used for signing

Why

The 'alg' field in a JWT header specifies the algorithm used to sign the token. This helps in verifying the token's signature and ensuring its integrity during authentication.

Test yourself on OWASP Vulnerabilities

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

Start free test
All OWASP Vulnerabilities questions →