LogoAwesome Skills
  • Search
  • Category
  • Tag
  • Blog
LogoAwesome Skills
LogoAwesome Skills

Discover Open-Source Agent Skills for AI Coding Assistants

Product

  • Search
  • Category
  • Tag
  • Blog

Resources

  • Claude Skill Docs
  • Antigravity Skills Docs

Tools

  • Claude Code
  • OpenCode
  • Cursor
  • Codex
  • Antigravity

Company

  • Privacy Policy
  • Terms of Service
  • Sitemap

©2026 Awesome Skills. All rights reserved.

Privacy PolicyTerms
Back to Skills

jwt-oauth-token-attacks

JWT and OAuth token attack playbook. Use when validating token trust, signing algorithms, key handling, claim abuse, bearer flows, and OAuth account-binding weaknesses.

1,279stars175forksUpdated 7/4/2026
Security#security#authentication#penetration-testing#jwt#oauth

Security Assessment

Low Risk(70/100)

Detected risks:

Secret Exposure([SKILL.md] token=)
Security Score70/100

About jwt-oauth-token-attacks

An expert offensive-security playbook for attacking authentication tokens, JSON Web Tokens (JWT) and OAuth 2.0 flows, during authorized testing. It focuses on token trust decisions: how signatures are validated, how signing algorithms and keys are handled, how claims can be abused, and how bearer tokens leak. It opens with JWT anatomy (header, payload, signature) and quick base64 decode commands, then lists common claim targets used to escalate privileges such as role, isAdmin, sub, permissions, and tier.

The JWT attacks are organized by class: algorithm confusion via alg:none (empty-signature forgery), RS256-to-HS256 key confusion (signing an HMAC token using the server's public key as the secret), brute-forcing weak HMAC secrets, kid header injection (SQL injection or path traversal to control the verification key, for example reading /dev/null for an empty key), and jku or x5u header injection pointing verification at an attacker-hosted JWKS. Concrete tooling is referenced throughout, including jwt_tool (with flags like -X a, -X k, -X s), hashcat mode 16500, john, and Burp's JWT Editor. The OAuth section covers missing or predictable state leading to CSRF and account takeover, redirect_uri bypasses (open redirect, partial-path and prefix matches, localhost and oob), implicit-flow token theft via URL-fragment leakage, and scope escalation during token exchange. A token-leakage section details Referer-header and server-log exposure when tokens travel in URLs, and the file ends with a JWT testing checklist.

The material is explicitly framed for authorized security work such as penetration testing, bug bounty, and red-team engagements, and treats tokens and claims as sensitive. It cross-references companion skills for OAuth/OIDC misconfiguration, CORS issues, and SAML SSO assertion attacks, so it can route to adjacent authentication testing when a target's trust model extends beyond plain JWT and OAuth. It is a hands-on attack reference rather than a defensive hardening guide, though each attack implies the corresponding fix.

FAQ

What token technologies does this playbook cover?

JWT cryptographic attacks (alg:none, RS256 to HS256 key confusion, secret brute force, kid and jku/x5u injection) and OAuth 2.0 flow attacks (state CSRF, redirect_uri bypass, implicit-flow token theft, scope escalation), plus token leakage vectors.

Which tools does it reference?

jwt_tool for automated JWT attacks, hashcat (mode 16500) and john for cracking weak HMAC secrets, and Burp Suite's JWT Editor, alongside manual commands.

How does the RS256-to-HS256 attack work?

When a server accepts an algorithm switch, you tell it the token is HS256 and sign the HMAC using the server's discoverable RSA public key as the secret, so verification passes on a forged token.

Is this intended for defensive use?

It is an offensive attack playbook for authorized testing (pentest, bug bounty, red team); it treats tokens as sensitive and each attack implies its defensive fix, but it is not a hardening guide.

Where do I go for related authentication issues?

It cross-references companion skills for OAuth/OIDC misconfiguration (redirect URI, state, nonce, PKCE, account binding), CORS misconfiguration, and SAML SSO assertion attacks.

Install jwt-oauth-token-attacks

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

yaklang/hack-skills

Related Skills

update-docs

1,853

amazon-seller-analytics

907

competitor-intel

705

qt-ui-design

571