id: trino-unauth-cluster

info:
  name: Trino 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: 4b0a00483046022100a11c6152b7cac316f27fb8745ecf811956a64035d77118dcffdcf3f08fea2f56022100f510a1118049e26f56ba2e17f9845680491e2ba6867426c189560a8a4d698c9e:922c64590222798bb761d5b6d8e72950