id: springboot-info

info:
  name: Spring Boot Information Panel - Detect
  author: philippedelteil,tess,TheZakMan
  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: 4
    verified: true
  tags: springboot,misconfig,vuln

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "contains_any(tolower(content_type), 'application/json', 'application/vnd.spring-boot')"
          - 'contains_all(body, "\"java\"", "\"version\"")'
          - 'status_code == 200'
        condition: and

      - type: word
        part: body
        words:
          - '"os"'
          - '"runtime"'
          - '"jvm"'
          - '"build"'
          - '"vendor"'
        condition: or
# digest: 4b0a0048304602210098ad0c587bf3d33428315274a001382e0ccda5d589800fc496528a3ff34a628c022100bbfed7d9cd5c28f5d3abacf77e7f2182a8ba3dee28e62271bddaa5ea995b68fb:922c64590222798bb761d5b6d8e72950