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,vuln

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

    stop-at-first-match: true

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