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

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: 4a0a00473045022100b4c99ea0f0aa26c364fbc68de516c59e7fd9a22c797efa4f1ebfb6c5dc7b540c02202fcf4913c625ea10e9cc652868c43c591aefef93db0993bf516ab56e5a3aa45a:922c64590222798bb761d5b6d8e72950