Skip to content
RED SAGSkills
hard20 pts · first answer countssecurity-fundamentalscryptographyauthentication

JWT signed with the public key

An API verifies RS256 JWTs, but its library picks the algorithm from the token header. An attacker sends a token with alg: HS256, signed using the server's RSA public key as the HMAC secret. Why can this work?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions