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"
          - "Log into OpenMage Admin Page"
        part: response
        negative: true

      - type: status
        status:
          - 200
# digest: 490a0046304402202a7b459676a82b2cfff26cd5adb0209d3a0578584127fe63704f9c1367c22889022033f3f25b01e6fbff641c26f3583fb6364151f5c26ec8c43a6339b4e767355e02:922c64590222798bb761d5b6d8e72950