auth_test_jwt
Detect JWT manipulation vulnerabilities by testing alg:none, RS256-to-HS256, and kid injection attacks. Pinpoint insecure token validation to secure authentication flows.
Instructions
Test JWT for manipulation vulnerabilities (alg:none, RS256→HS256, kid injection).
Runs deterministic checks against a JWT-protected endpoint:
alg:none — strip signature, set alg to "none"
RS256→HS256 — sign with public key as HMAC secret
kid injection — path traversal in kid header
Weak secret brute-force (opt-in, slow)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to test (should require JWT auth). | |
| token | Yes | The JWT token to manipulate. | |
| method | Yes | HTTP method (GET, POST, etc.). | |
| target_id | Yes | Identifier for the target. | |
| public_key | No | RSA public key PEM for RS256→HS256 test. | |
| auth_header | No | Header name (default: "Authorization"). | |
| auth_prefix | No | Token prefix (default: "Bearer "). | |
| weak_secrets | No | Custom list of secrets to try. | |
| scope_exclude | No | Scope denylist patterns. | |
| scope_include | No | Scope allowlist patterns. | |
| check_weak_secrets | No | Enable weak secret brute-force (slow). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||