id: springboot-loggerconfig

info:
  name: Spring Boot LoggerConfig Actuator Panel - Detect
  author: DhiyaneshDK
  severity: info
  description: Spring Boot LoggerConfig Actuator panel was detected.
  reference:
    - https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"Eureka"
  tags: misconfig,springboot,exposure

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '["loggingConfig"]'
          - '"propertySources"'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"
          - "application/vnd.spring-boot.actuator"
          - "application/vnd.spring-boot.actuator.v1+json"
        condition: or

      - type: status
        status:
          - 200

# digest: 4a0a0047304502210092e42842c242686640a35baad99023752f8c20cbe33f8aa9610d45c76415e29f02204ccb5a70951069e02ba39129fbea3a89258a0f0428cbbd119dff457a693786be:922c64590222798bb761d5b6d8e72950
