id: spark-webui-unauth

info:
  name: Unauthenticated Spark WebUI
  author: princechaddha
  severity: medium
  description: Spark WebUI is exposed to external users without any authentication.
  reference:
    - https://github.com/vulhub/vulhub/tree/master/spark/unacc
  metadata:
    max-request: 1
  tags: unauth,vulhub,spark

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "<title>Spark Master at spark://"
          - "<strong>URL:</strong>"
        part: body
        condition: and
# digest: 4a0a00473045022100c847d1e418f11a9224ae449863b5b6bd723fb4f2552d32cf460704f170b4d1800220153a8e62fef47c3679851cd3bc43459e86a7b0a3007695429eb0184f1d822270:922c64590222798bb761d5b6d8e72950