id: springboot-gateway

info:
  name: Detect Spring Gateway Actuator
  author: wdahlenb
  severity: medium
  description: Sensitive environment variables may not be masked
  reference:
    - https://wya.pl/2021/12/20/bring-your-own-ssrf-the-gateway-actuator/
  metadata:
    max-request: 2
  tags: springboot,exposure,misconfig,vuln

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

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "predicate"
          - "route_id"
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

      - type: status
        status:
          - 200
# digest: 490a00463044022062e8a19a805cc58f9b4008d858eefc6113ef082405b3a867efebe258ebb6a18b022059a56075ee6276a1271b470266bfa836ad6161daa0d33a798799451a388229c1:922c64590222798bb761d5b6d8e72950