id: springboot-info

info:
  name: Spring Boot Information Panel - Detect
  author: philippedelteil,tess
  severity: info
  description: Spring Boot information panel displaying app name, version information, and other values was detected.
  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:
    max-request: 2
  tags: springboot,misconfig

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"build"'
          - '"artifact"'
        condition: and

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

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