jwt-attack

Analyzes JWT authentication weaknesses including token validation and authorization handling patterns.

54|5|Updated May 9, 2026
One-click install
npx skills add https://github.com/jinyimeng01/mastermind-bug-bounty --skill jwt-attack-jinyimeng01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jwt-attack
Source: https://github.com/jinyimeng01/mastermind-bug-bounty/tree/main/skills/jwt_attack
Command: npx skills add https://github.com/jinyimeng01/mastermind-bug-bounty --skill jwt-attack-jinyimeng01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps security testers identify and validate weaknesses in JWT-based authentication systems, reducing the effort required to assess token handling risks.

Core Features & Use Cases

  • JWT Attack Methodology: Covers token validation issues, algorithm confusion, claims analysis, header injection scenarios, and key management weaknesses.
  • Authentication Assessment: Supports security reviews involving Bearer handling, JWKS analysis, token reuse checks, and privilege escalation testing.
  • Use Case: A bug bounty researcher can use this Skill to systematically review a web application's JWT authentication flow and identify potential authorization weaknesses.

Quick Start

Use the jwt-attack skill to analyze the JWT authentication flow of an authorized target and identify potential token validation issues.

Frequently Asked Questions about jwt-attack

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

FAQPage Schema
How do I test JWT authentication for algorithm confusion and token validation flaws?

JWT algorithm confusion occurs when token validation improperly trusts header-specified algorithms. You test this by analyzing token headers, key management, and JWKS endpoints to identify insecure authorization handling patterns.

What is the best way to analyze JWKS endpoints during a security review?

Analyzing JWKS endpoints involves evaluating key management configurations and cross-service token usage patterns. This process validates token security and detects insecure Bearer handling in authorized penetration testing scenarios.

Can I use this approach to detect privilege escalation in role-based access controls?

Yes, you can detect privilege escalation by analyzing JWT claims and role-based access controls. Systematic evaluation of token reuse and authorization handling identifies potential escalation vulnerabilities in web applications.

Does JWT attack methodology cover header injection and claims analysis for bug bounty assessments?

JWT attack methodology covers header injection scenarios, claims analysis, and token validation issues. It applies directly to bug bounty assessments and security reviews involving Bearer handling and key management weaknesses.

When do I need to evaluate cross-service token usage patterns for authorization weaknesses?

You need to evaluate cross-service token usage patterns when assessing JWT authentication flows across multiple services. This identifies token reuse risks, insecure validation, and authorization weaknesses in complex web architectures.