testing-for-json-web-token-vulnerabilities

Detect JWT implementation weaknesses and misconfigurations in web apps and APIs.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Acczdy/MoZiSec --skill testing-for-json-web-token-vulnerabilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing-for-json-web-token-vulnerabilities
Source: https://github.com/Acczdy/MoZiSec/tree/main/web-security/.claude/skills/testing-for-json-web-token-vulnerabilities
Command: npx skills add https://github.com/Acczdy/MoZiSec --skill testing-for-json-web-token-vulnerabilities

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

JWT-based authentication in web apps is often vulnerable due to weak signing configurations, misconfigured headers, and missing claims.

Core Features & Use Cases

  • Automated detection of common JWT weaknesses such as alg:none bypass, algorithm confusion, and header injections (kid, jku, x5u).
  • Comprehensive analysis of token structure, claims (iss, sub, aud, exp), and expiration handling to identify missing or weak controls.
  • Automated reporting with remediation guidance and practical testing workflows for API security, OAuth2/OpenID Connect deployments, and SSO scenarios.

Quick Start

Run the agent with a JWT token and an optional base URL to initiate automated vulnerability testing.

Frequently Asked Questions about testing-for-json-web-token-vulnerabilities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test JWT vulnerabilities like alg:none bypass and algorithm confusion?

To test JWT vulnerabilities such as alg:none bypass and algorithm confusion, provide a token and base URL to automate detection of signing misconfigurations. The tool identifies header injection risks and missing claims, exposing findings with recommended mitigations for web app and API security.

What is a JWT algorithm confusion attack and how does it expose token abuse?

A JWT algorithm confusion attack exploits weak signing configurations by manipulating the token header to bypass verification. This automated testing identifies such misconfigurations, missing exp, iss, or aud claims, and header-based injection risks to prevent token abuse in OAuth2 or SSO deployments.

Can I scan JWT authentication for missing exp, iss, or aud claims in production APIs?

Yes, you can scan JWT authentication in both development and production environments. The analysis comprehensively checks token structure and claims to identify missing or weak controls regarding expiration, issuer, and audience, providing remediation guidance for API security.

How do I detect kid, jku, or x5u header injections in JWT tokens?

To detect kid, jku, or x5u header injections in JWT tokens, run an automated analysis against the provided token string. The testing workflow exposes header-based injection risks and misconfigurations, delivering a report with practical remediation steps to secure authentication.

Do I need the requests library to perform JWT pentesting and token analysis?

Yes, the requests library is required as a dependency to perform JWT pentesting and token analysis. It facilitates the automated security testing of web apps and APIs by sending requests to the specified base URL to validate token implementation weaknesses.