id: jwk-json-leak info: name: JSON Web Key File - Exposure author: Mohsen Yaghoubi severity: info description: | Searches for JSON Web Key (JWK) file. reference: - https://portswigger.net/web-security/jwt/algorithm-confusion classification: cpe: cpe:2.3:a:jwt_project:jwt:*:*:*:*:*:*:*:* metadata: verified: true max-request: 1 vendor: jwt_project product: jwt shodan-query: html:"jwks.json" tags: exposure,token,generic http: - method: GET path: - "{{BaseURL}}/.well-known/jwks.json" - "{{BaseURL}}/.well-known/jwks" - "{{BaseURL}}/.well-known/openid-configuration/jwks.json" - "{{BaseURL}}/.well-known/openid-configuration/jwks" - "{{BaseURL}}/jwks.json" - "{{BaseURL}}/jwks" stop-at-first-match: true matchers-condition: and matchers: - type: word part: body words: - '"kid":' - type: word part: content_type words: - 'application/json' - type: status status: - 200 # digest: 490a0046304402206475ac3aa8aa7a892c73189ad512378f3f8e5a868c86b18b667c59648e3f3ef302203097a2fd4086849e4700fd4b00b6903c45c68470e7eaef07804bcd6933208a65:922c64590222798bb761d5b6d8e72950