id: smartsense-default-login

info:
  name: HortonWorks SmartSense Default Login
  author: Techryptic (@Tech)
  severity: high
  description: HortonWorks SmartSense default admin login information was detected.
  reference:
    - https://docs.cloudera.com/HDPDocuments/SS1/SmartSense-1.2.2/bk_smartsense_admin/content/manual_server_login.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
  tags: hortonworks,smartsense,default-login,vuln

http:
  - raw:
      - |
        GET /apt/v1/context HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

    payloads:
      username:
        - admin
      password:
        - admin
    attack: pitchfork

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "Set-Cookie: SUPPORTSESSIONID"
        part: header

      - type: word
        words:
          - "smartsenseId"

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