id: springboot-logfile

info:
  name: Detects Springboot Logfile Actuator
  author: DhiyaneshDK
  severity: low
  description: Springboot Logfile Actuator is exposed.
  reference:
    - https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt
  metadata:
    verified: true
    max-request: 3
    shodan-query: title:"Eureka"
  tags: misconfig,springboot,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/logfile"
      - "{{BaseURL}}/actuator/logfile"
      - "{{BaseURL}}/actuators/logfile"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'springframework.web.HttpRequestMethodNotSupportedException'
          - 'INFO'
        condition: and

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

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