id: springboot-conditions

info:
  name: Detect Springboot Conditions Actuator
  author: DhiyaneshDK
  severity: low
  description: Springboot Conditions Actuator is exposed.
  reference:
    - https://raw.githubusercontent.com/maurosoria/dirsearch/master/db/dicc.txt
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"Eureka"
  tags: misconfig,springboot,exposure,vuln

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"positiveMatches":{'
          - '"unconditionalClasses":['
        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: 4b0a00483046022100a7edf0321d0b5f5a63c7ccb708040501eef5545cd6a09f3d91205e483c4e1c83022100c0d729a7f51fcf282880ad6c7c5098ce8dc40bb0a14bae83f7092bb249b0f163:922c64590222798bb761d5b6d8e72950