id: zend-config-file

info:
  name: Zend Configuration File
  author: pdteam,geeknik,Akokonunes
  severity: high
  description: Zend configuration file was exposed.
  metadata:
    max-request: 13
  tags: config,exposure,zend,php,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}{{paths}}"
    payloads:
      paths:
        - "/application/configs/application.ini"
        - "/admin/configs/application.ini"
        - "/application.ini"
        - "/aplicacao/application/configs/application.ini"
        - "/cloudexp/application/configs/application.ini"
        - "/cms/application/configs/application.ini"
        - "/moto/application/configs/application.ini"
        - "/Partners/application/configs/application.ini"
        - "/radio/application/configs/application.ini"
        - "/seminovos/application/configs/application.ini"
        - "/shop/application/configs/application.ini"
        - "/site_cg/application/configs/application.ini"
        - "/slr/application/configs/application.ini"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "db.*(.password).*="
          - "db.*(.username).*="
        condition: and

      - type: word
        words:
          - "text/plain"
        part: header

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