id: gloo-unauth

info:
  name: Unauthenticated Gloo UI
  author: dhiyaneshDk
  severity: high
  description: Gloo UI is exposed to external users.
  metadata:
    max-request: 1
  tags: unauth,gloo,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/fed.rpc.solo.io.GlooInstanceApi/ListClusterDetails'

    headers:
      Content-type: "application/grpc-web+proto"
      Referer: "{{BaseURL}}/admin/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "gke-remote"
        part: body

      - type: word
        words:
          - "application/grpc-web+proto"
        part: header

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