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

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: 4a0a0047304502206f668cc2c461c00d5c2dbffc9a3b3d4f71a5677fbe1ab185994d42e5b3d49796022100867ad547624f91cbc6b9d027ddf933b628b7202a601a6b9534b54d46c7792fdd:922c64590222798bb761d5b6d8e72950