2021-07-24 19:28:33 +00:00
|
|
|
id: production-logs
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Discover production log files
|
|
|
|
author: geeknik
|
|
|
|
severity: info
|
2021-07-26 08:53:27 +00:00
|
|
|
tags: exposure,logs,rails
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 3
|
2021-07-24 19:28:33 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-07-24 19:28:33 +00:00
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/log/production.log"
|
|
|
|
- "{{BaseURL}}/logs/production.log"
|
|
|
|
- "{{BaseURL}}/production.log"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "Connecting to database specified by database.yml"
|
|
|
|
- "Started GET"
|
|
|
|
condition: and
|
2021-07-25 20:22:26 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
2021-07-24 19:28:33 +00:00
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- "text/html"
|
|
|
|
negative: true
|
2021-07-25 20:22:26 +00:00
|
|
|
|
2021-07-24 19:28:33 +00:00
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: last_modified
|
|
|
|
part: header
|
|
|
|
regex:
|
|
|
|
- 'Last-Modified:.*'
|