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,vuln

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