id: springboot-integrationgraph

info:
  name: Springboot Actuator integrationgraph
  author: ELSFA7110
  severity: low
  description: |
    The integrationgraph endpoint exposes a graph containing all Spring Integration components.
  reference:
    - https://docs.spring.io/spring-boot/docs/current/actuator-api/htmlsingle/
  metadata:
    verified: true
    max-request: 2
  tags: misconfig,springboot,exposure

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

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "provider"
          - "integrationPatternType"
        condition: and

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

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