JWKS Leak
JSON Web Key Sets (JWKS) is a standard format for representing a set of cryptographic keys used for implementing digital signatures and encryption in web applications. jwks endpoint usually contains the public key that is used by resource servers to verify JWT. Misconfiguration of jwks endpoint can expose the private key. The private key can be abused by an adversary to forge tokens and get unauthorised access.
Remediation
Review jwks endpoint and make sure it does not accidentally exposes private keys, i.e. p, dp, dq and qi.
Metadata
- Severity: high
- Slug: jwks-leak
OWASP
- A05:2021: Security Misconfiguration