id: xampp-environment-variables

info:
  name: XAMPP Environment Variables Exposure
  author: melbadry9,DhiyaneshDK
  severity: low
  description: printenv.pl file is exposed in XAMPP leaking environment variables.
  metadata:
    max-request: 1
  tags: exposure,xampp,files

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/printenv.pl"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<TITLE>Environment Variables</TITLE>"
          - "Environment Variables:"
        condition: and

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

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