id: springboot-metrics

info:
  name: Detect Springboot metrics Actuator
  author: pussycat0x
  severity: low
  description: Additional routes may be displayed
  metadata:
    max-request: 2
  tags: springboot,exposure,misconfig

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "mem"
          - "mem.free"
          - "processors"
          - "instance.uptime"
          - "systemload.average"
          - "nonheap.init"
          - "heap.committed"
        condition: and

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