id: zenphoto-sensitive-info

info:
  name: Zenphoto Installation Sensitive Information
  author: qlkwej
  severity: medium
  description: Misconfiguration on Zenphoto version < 1.5.X which lead to sensitive information disclosure
  metadata:
    max-request: 4
  tags: misconfig,unauth,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/zenphoto/zp-core/setup/index.php'
      - '{{BaseURL}}/zp/zp-core/setup/index.php'
      - '{{BaseURL}}/gallery/zp-core/setup/index.php'
      - '{{BaseURL}}/zp-core/setup/index.php'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - Welcome to Zenphoto! This page will set up Zenphoto
        part: body

      - type: word
        words:
          - text/html
        part: header

      - type: status
        status:
          - 200
# digest: 490a0046304402205d7993db7d00ceda48eb8af2cd817e26a415d1709744d5c26045c3f94a03e03602205269ae85cb5e40eccc3c80a09d0f922568433c72394d2571d8ad2af786b13a54:922c64590222798bb761d5b6d8e72950