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.

theheavenlyd3mon 8013105 4 files · 36.9 KB Updated 28 repo stars

File contents

theheavenlyd3mon/hermes-profiles/tree/main/profiles/cyber-red/skills/Anthropic-Cybersecurity-Skills/skills/exploiting-jwt-algorithm-confusion-attack commit 801310503c

Frequently asked questions

npx skillmds add theheavenlyd3mon/exploiting-jwt-algorithm-confusion-attack