Exploiting JWT Algorithm Confusion Attack

Exploits JWT algorithm confusion where the server's verification library trusts the alg named in the token header, by switching RS256 to HS256 (signing with the RSA public key as HMAC secret), setting alg to none, or injecting kid/jku/x5u headers to supply an attacker-controlled key. Use when testing RS256 JWT auth for algorithm downgrade, alg:none bypass, or key-confusion signature forgery.

gabrielmoreira Updated 17 repo stars

File contents

gabrielmoreira/agent-skills-mirror/tree/main/mirrors/repos/mukul975@Anthropic-Cybersecurity-Skills/skills/exploiting-jwt-algorithm-confusion-attack commit e6b4f3f3ef

Frequently asked questions

npx skillmds@latest add gabrielmoreira/exploiting-jwt-algorithm-confusion-attack