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

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