2024-07-09 16:55:44 +00:00
|
|
|
id: jwk-json-leak
|
2024-07-09 16:53:10 +00:00
|
|
|
|
|
|
|
info:
|
2024-07-09 17:19:26 +00:00
|
|
|
name: JSON Web Key File - Exposure
|
2024-07-09 16:53:10 +00:00
|
|
|
author: Mohsen Yaghoubi
|
2024-07-10 06:05:09 +00:00
|
|
|
severity: low
|
2024-07-09 16:53:10 +00:00
|
|
|
description: |
|
|
|
|
Searches for JSON Web Key (JWK) file.
|
|
|
|
reference:
|
|
|
|
- https://portswigger.net/web-security/jwt/algorithm-confusion
|
2024-07-09 17:19:26 +00:00
|
|
|
metadata:
|
|
|
|
shodan-query: html:"jwks.json"
|
|
|
|
verified: true
|
|
|
|
max-request: 1
|
2024-07-09 16:53:10 +00:00
|
|
|
tags: exposure,token,generic
|
|
|
|
|
|
|
|
http:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/.well-known/jwks.json"
|
|
|
|
- "{{BaseURL}}/.well-known/jwks"
|
|
|
|
- "{{BaseURL}}/jwks.json"
|
|
|
|
- "{{BaseURL}}/jwks"
|
|
|
|
|
|
|
|
stop-at-first-match: true
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2024-07-09 17:19:26 +00:00
|
|
|
part: body
|
2024-07-09 16:53:10 +00:00
|
|
|
words:
|
|
|
|
- '"kid":'
|
|
|
|
|
2024-07-09 17:19:26 +00:00
|
|
|
- type: word
|
|
|
|
part: content_type
|
|
|
|
words:
|
|
|
|
- 'application/json'
|
|
|
|
|
2024-07-09 16:53:10 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2024-07-10 06:10:27 +00:00
|
|
|
# digest: 4a0a00473045022100b718974b135dcbaf5491507c379544edddca58967a6ef8f72eeea45fe2059cb102207edaf758be880a6f6ed1a1cf5e9ac4750f27230c4eac03dd9f0938c88224f416:922c64590222798bb761d5b6d8e72950
|