testing-for-json-web-token-vulnerabilities

Featured

Test JWT implementations for critical vulnerabilities including algorithm confusion, none algorithm bypass, kid parameter injection, and weak secret exploitation to achieve authentication bypass and privilege escalation.

Testing & QA 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Testing for JSON Web Token Vulnerabilities ## When to Use - When testing applications using JWT for authentication and session management - During API security assessments where JWTs are used for authorization - When evaluating OAuth 2.0 or OpenID Connect implementations using JWT - During penetration testing of single sign-on (SSO) systems - When auditing JWT library configurations for known vulnerabilities ## Prerequisites - jwt_tool (Python JWT exploitation toolkit) - Burp Suite with JWT Editor extension - jwt.io for decoding and inspecting JWT structure - Understanding of JWT structure (header.payload.signature) and algorithms (HS256, RS256) - hashcat or john for brute-forcing weak JWT secrets - Python PyJWT library for custom JWT forging scripts - Access to application using JWT-based authentication > **Legal Notice:** This skill is for authorized security testing and educational purposes only. Unauthorized use against systems you do not own or have written permission to test is illegal and may violate computer fraud laws. ## Workflow ### Step 1 — Decode and Analyze JWT Structure ```bash # Install jwt_tool pip install pyjwt git clone https://github.com/ticarpi/jwt_tool.git # Decode JWT without verification python3 jwt_tool.py <JWT_TOKEN> # Decode manually with base64 echo "<header_base64>" | base64 -d echo "<payload_base64>" | base64 -d # Examine JWT in jwt.io # Check: algorithm (alg), key ID (kid), issuer (iss), audience (aud) # Check: expiration (exp), not-b...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category