Api auth and jwt abuse

From ShulkwiSEC/bb-huge · View interactive version

Api auth and jwt abuse is an AI agent skill from the GitHub repository ShulkwiSEC/bb-huge. API authentication and JWT abuse playbook. Use when testing bearer tokens, API keys, claim trust, header spoofing, rate limits, and API auth boundary weaknesses.

How to use this skill

Skill file

SKILL: API Auth and JWT Abuse — Token Trust, Header Tricks, and Rate Limits

AI LOAD INSTRUCTION: Use this skill when APIs rely on JWT, bearer tokens, API keys, or weak request identity signals. Focus on token trust boundaries, claim misuse, header spoofing, and rate-limit bypass.

1. TOKEN TRIAGE

Inspect:

2. QUICK ATTACK PICKS

| Pattern | First Test |

|---|---|

| alg:none acceptance | unsigned token with trailing dot |

| RS256 confusion | switch to HS256 using public key as secret |

| kid lookup trust | path traversal or injection in kid |

| remote key fetch trust | attacker-controlled jku or x5u |

| weak secret | offline crack with targeted wordlists |

3. HIDDEN FIELDS AND BATCH ABUSE

Mass assignment field picks

role
isAdmin
admin
verified
plan
tier
permissions
org
owner

Rate limit and batch abuse picks

X-Forwarded-For: 1.2.3.4
X-Real-IP: 5.6.7.8
Forwarded: for=9.9.9.9

GraphQL or JSON batch abuse candidates:

4. RATE LIMIT BYPASS FAMILIES

X-Forwarded-For
X-Real-IP
Forwarded
User-Agent rotation
Path case / slash variants

5. NEXT ROUTING

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.