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