putty-private-key-disclosure: Putty Private Key Disclosure

日期: 2025-08-01 | 影响软件: Putty | POC: 已公开

漏洞描述

Putty internal user key file is exposed.

PoC代码[已公开]

id: putty-private-key-disclosure

info:
  name: Putty Private Key Disclosure
  author: DhiyaneshDk,geeknik
  severity: medium
  description: Putty internal user key file is exposed.
  reference:
    - https://github.com/detectify/ugly-duckling/blob/master/modules/crowdsourced/putty-private-key-disclosure.json
  classification:
    cpe: cpe:2.3:a:putty:putty:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 8
    vendor: putty
    product: putty
    github-query: filename:putty.ppk
  tags: exposure,files,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/my.ppk"
      - "{{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"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "PuTTY-User-Key-File"
          - "Encryption:"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b091929520c77da83b5aa0f379d354ad570d75141c693f9c819d121497f69bce02204d8dc8327a7fc6873e80349bcb8b1718d44f2f3315eaf36bd20391f1f1b8f73d:922c64590222798bb761d5b6d8e72950