id: updraftplus-pem-keys

info:
  name: UpdraftPlus Plugin Pem Key
  author: dhiyaneshDk
  severity: info
  description: UpdraftPlus wordpress plugin private key leaked with directory listing.
  reference:
    - https://www.exploit-db.com/ghdb/6437
  metadata:
    max-request: 1
  tags: wp-plugin,edb,wordpress

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/updraftplus/includes/'

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Index of /"
          - ".pem"
          - "updraftplus"
        condition: and
        part: body

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