id: apache-storm-unauth

info:
  name: Apache Storm Unauth
  author: pikpikcu
  severity: medium
  description: Apache Storm instance is exposed.
  reference:
    - https://storm.apache.org/releases/current/STORM-UI-REST-API.html
  metadata:
    max-request: 1
  tags: apache,unauth,misconfig,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/api/v1/cluster/summary'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"totalMem":'
          - '"stormVersion":'
        condition: and

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