domains / families / security / exploiting-jwt-algorithm-confusion-attack

exploiting-jwt-algorithm-confusion-attack

separate

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.

When to use

When not to use

Skill page

Source

RepositoryPath
mukul975/Anthropic-Cybersecurity-Skillsskills/exploiting-jwt-algorithm-confusion-attack/SKILL.md