id: unauth-cluster-trino

info:
  name: Cluster Overview - Unauthenticated Dashboard Exposure
  author: tess
  severity: medium
  description: Cluster Overview dashboard is exposed.
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Cluster Overview - Trino"
  tags: cluster,unauth,trino,misconfig

http:
  - method: POST
    path:
      - "{{BaseURL}}/ui/login"

    headers:
      Content-Type: application/x-www-form-urlencoded

    body: |
      username={{randstr}}&password=&redirectPath=
    redirects: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Cluster Overview'
          - 'Query Details'
        condition: and

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