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

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: 490a00463044022038656b164ade62059193dde865f17a96b882726297473aa1c0b6fca7cfd70c0302201fa19083ef39e6016b90e4b0ddc8fefc9fd4eaee5253e30b90c7d0bcf6642420:922c64590222798bb761d5b6d8e72950