id: springboot-features

info:
  name: Detects Springboot Features Actuator
  author: DhiyaneshDK
  severity: low
  description: Springboot Features Actuator is exposed.
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"Eureka"
  tags: misconfig,springboot,exposure

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"enabled":['
          - '"disabled":['
        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: 490a00463044022054240120151474340eab5c4d8ecadd53f50d771782bdb8df6b9ee1d014ce3d5102203b62ae16f56e8777ac508638ff6f2e2489cb0a9845ec1bcecc2ecae98f4f4bc2:922c64590222798bb761d5b6d8e72950