2024-07-09 16:55:44 +00:00
|
|
|
id: jwk-json-leak
|
2024-07-09 16:53:10 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
name: JSON Web Key File - leak
|
|
|
|
author: Mohsen Yaghoubi
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
Searches for JSON Web Key (JWK) file.
|
|
|
|
reference:
|
|
|
|
- https://portswigger.net/web-security/jwt/algorithm-confusion
|
|
|
|
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
|
|
|
|
name: id
|
|
|
|
words:
|
|
|
|
- '"kid":'
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|