LS-JWT-001: JWT Token¶
| Severity | MEDIUM |
| Blast radius | Session/identity impersonation until expiry |
| Rotate at | https://vasishta03.github.io/leakscan/rules/ |
| Validation | jwt_ok (matches that fail are dropped) |
If this leaks¶
JWTs encode claims (often including user ID, role, and expiry) that a receiving service trusts; an attacker can replay it to impersonate the subject until it expires.
What to do¶
- Rotate or revoke the credential at https://vasishta03.github.io/leakscan/rules/.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
eyJ[a-zA-Z0-9\-_]+\.eyJ[a-zA-Z0-9\-_]+\.[a-zA-Z0-9\-_]+
Suppress¶
On one line: # leakscan:ignore LS-JWT-001. For the whole project:
disable_rules: [LS-JWT-001]