43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
id: jwk-json-leak
|
|
|
|
info:
|
|
name: JSON Web Key File - Exposure
|
|
author: Mohsen Yaghoubi
|
|
severity: low
|
|
description: |
|
|
Searches for JSON Web Key (JWK) file.
|
|
reference:
|
|
- https://portswigger.net/web-security/jwt/algorithm-confusion
|
|
metadata:
|
|
shodan-query: html:"jwks.json"
|
|
verified: true
|
|
max-request: 1
|
|
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: 4a0a0047304502205581eae6281f5e413965da3fe0031dbb6908676617f08fd0b19396c86046281702210081886f398e6973d5894cf43b439d3825e0e036150c7a2355bab22714bf4c960d:922c64590222798bb761d5b6d8e72950 |