2021-07-21 08:23:55 +00:00
|
|
|
id: putty-private-key-disclosure
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Putty Private Key Disclosure
|
2022-12-02 07:20:22 +00:00
|
|
|
author: DhiyaneshDk,geeknik
|
2021-07-21 08:23:55 +00:00
|
|
|
severity: medium
|
2024-01-02 16:16:15 +00:00
|
|
|
description: Putty internal user key file is exposed.
|
2022-04-22 10:38:41 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/putty-private-key-disclosure.json
|
2022-12-02 07:20:22 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 8
|
2022-12-02 07:20:22 +00:00
|
|
|
github-query: filename:putty.ppk
|
2021-07-21 08:23:55 +00:00
|
|
|
tags: exposure,files
|
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-21 08:23:55 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/my.ppk"
|
2022-12-02 07:20:22 +00:00
|
|
|
- "{{BaseURL}}/putty.ppk"
|
|
|
|
- "{{BaseURL}}/{{Hostname}}.ppk"
|
|
|
|
- "{{BaseURL}}/.ssh/putty.ppk"
|
|
|
|
- "{{BaseURL}}/.ssh/{{Hostname}}.ppk"
|
|
|
|
- "{{BaseURL}}/.putty/my.ppk"
|
|
|
|
- "{{BaseURL}}/.putty/putty.ppk"
|
|
|
|
- "{{BaseURL}}/.putty/{{Hostname}}.ppk"
|
2021-07-23 04:16:32 +00:00
|
|
|
|
2022-12-02 07:21:21 +00:00
|
|
|
stop-at-first-match: true
|
2023-10-14 11:27:55 +00:00
|
|
|
|
2021-07-21 08:23:55 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2022-12-08 09:28:06 +00:00
|
|
|
part: body
|
2021-07-21 08:23:55 +00:00
|
|
|
words:
|
|
|
|
- "PuTTY-User-Key-File"
|
|
|
|
- "Encryption:"
|
2021-07-23 04:16:40 +00:00
|
|
|
condition: and
|
|
|
|
|
2021-07-21 08:23:55 +00:00
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2024-01-15 11:49:24 +00:00
|
|
|
# digest: 4a0a004730450221009743a619b8ae5bbb216de2254c978a6aff3bceeb7cc54124697d3e8b2d7b5150022068d3fcc4ef1b0bcfb6c280cd87534daf8cce9751a796c0a344d8751af50b19a7:922c64590222798bb761d5b6d8e72950
|