id: awstats-script

info:
  name: AWStats Script Config - Detect
  author: sheikhrishad,msegoviag
  severity: info
  description: AWStats configuration information was detected.
  reference: https://www.awstats.org/docs/awstats_setup.html
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    max-request: 4
  tags: config,exposure,awstats

http:
  - method: GET
    path:
      - "{{BaseURL}}/awstats.pl"
      - "{{BaseURL}}/cgi-bin/awstats.pl"
      - "{{BaseURL}}/logs/awstats.pl"
      - "{{BaseURL}}/webstats/awstats.pl"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Do not remove this line"

      - type: word
        part: header
        words:
          - "application/x-perl"

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