Skip to content
Back to skills

Jwt

ASecurity

JSON Web Token attacks — alg:none, accept-arbitrary-signature, weak-HMAC-secret cracking, JWK/JKU/KID header injection, kid path-traversal/SQLi, RS256→HS256 algorithm confusion (with automation), ECDSA psychic-signatures (CVE-2022-21449), and claim-logic abuse. Tier 1. Payloads: payloads/auth-jwt.md. Use whenever JWTs are present.

  • 16 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
securitygojavasqlbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill jwt --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Jwt?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Jwt
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-jwt/badge)](https://www.skillsdirectory.com/skills/anandjogawade-jwt)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: jwt
description: "JSON Web Token attacks — alg:none, accept-arbitrary-signature, weak-HMAC-secret cracking, JWK/JKU/KID header injection, kid path-traversal/SQLi, RS256→HS256 algorithm confusion (with automation), ECDSA psychic-signatures (CVE-2022-21449), and claim-logic abuse. Tier 1. Payloads: payloads/auth-jwt.md. Use whenever JWTs are present."
---

# JWT Attacks

Decode every JWT (header.payload.signature); attack the crypto and the claim logic. Payloads in `${CLAUDE_PLUGIN_ROOT}/payloads/auth-jwt.md`.

## Trigger phrases
`jwt, json web token, alg none, algorithm confusion, jku, jwk, kid injection, weak jwt secret, psychic signature`

## Attacks
- **alg:none** — set `alg` to `none`/`None`/`nOnE`, strip signature (keep trailing dot); if accepted, forge any claims.
- **Accept-arbitrary-signature** — server decodes but doesn't verify; tamper claims, keep any signature.
- **Weak HMAC secret** — crack HS256 offline (`hashcat -m 16500`, jwt_tool, jwt-secrets wordlist) → forge.
- **Algorithm confusion RS256→HS256 [NEW/RARE]** — sign with the public key as the HMAC secret. Automate recovery of the public key from two tokens with `rsa_sign2n`/`sig2n` when `/jwks.json` isn't exposed.
- **JWK header injection** — embed attacker public key in the token header.
- **JKU / X5U header injection** — point to attacker-hosted JWKS (test SSRF/allowlist bypass on the fetch).
- **KID injection** — path traversal (`kid:../../dev/null` → predictable key), SQLi, or command injection in `kid`.
- **Psychic signatures — CVE-2022-21449 [NEW/RARE]** — ECDSA (ES256) implementations (vulnerable Java 15-18) accept a (0,0) signature as valid → forge any token.
- **Claim-logic** — missing/expired `exp` accepted, `aud`/`iss` unchecked (token from another app accepted), `sub` swap for IDOR.

## Verify each forged token actually authenticates as the target identity.

## Backend
Use the preferred Kali path (native Kali / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or a headless browser for client-side steps; Windows-local only as last resort. See `zazy-orchestrator`.

## Verification (background, before reporting)
Re-confirm every candidate independently (second account/session, replay, or OAST) before marking CONFIRMED. Report true positives only; hold back anything not reproduced.

## Evidence
The decoded token, the manipulation applied, and the forged token authenticating as a higher-priv/victim identity.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.