id: access-log-file

info:
  name: Publicly accessible access-log file
  author: sheikhrishad
  severity: low
  description: Log file was exposed.
  classification:
    cwe-id: CWE-219,CWE-552
  metadata:
    max-request: 4
  tags: logs,exposure,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/access.log"
      - "{{BaseURL}}/log/access.log"
      - "{{BaseURL}}/logs/access.log"
      - "{{BaseURL}}/application/logs/access.log"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '"GET /'

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

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