Exploiting JWT Algorithm Confusion Attack

Exploits JWT algorithm confusion vulnerabilities where the server's token verification library accepts the algorithm specified in the JWT header rather than enforcing a fixed algorithm. The tester manipulates the alg header to switch from RS256 to HS256 (using the RSA public key as the HMAC secret), sets alg to none to bypass signature verification, or exploits kid/jku/x5u header injection to supply attacker-controlled keys. Activates for requests involving JWT algorithm confusion, alg none attack, key confusion attack, or JWT signature bypass.

henriquescastilho 34cfbe6 4 files · 36.5 KB Updated

File contents

henriquescastilho/my-claude/tree/main/.claude/skills/exploiting-jwt-algorithm-confusion-attack commit 34cfbe66fb

Frequently asked questions

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