id: production-log

info:
  name: Production Log File Disclosure
  author: geeknik
  severity: low
  description: Production log file was exposed.
  metadata:
    verified: true
    max-request: 3
    github-query: filename:production.log Connecting to database specified by database.yml
  tags: exposure,files,logs

http:
  - method: GET
    path:
      - '{{BaseURL}}/log/production.log'
      - '{{BaseURL}}/logs/production.log'
      - '{{BaseURL}}/production.log'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - 'Connecting to database specified by database.yml'

      - type: word
        part: header
        words:
          - 'text/html'
        negative: true

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