id: caimore-default-login

info:
  name: CAIMORE Gateway  Default Login - Detect
  author: pussycat0x
  severity: high
  description: |
    The gateway of Xiamen Caimao Communication Technology Co., Ltd. is designed with open software architecture. It is a metal shell design, with two Ethernet RJ45 interfaces, and an industrial design wireless gateway using 3G/4G/5G wide area network for Internet communication. There is a command execution vulnerability in the formping file of the gateway of Xiamen Caimao Communication Technology Co., Ltd. An attacker can use this vulnerability to arbitrarily execute code on the server side, write to the back door, obtain server permissions, and then control the entire web server.
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="CAIMORE-Gateway"
  tags: ciamore-gateway,default-login,vuln

http:
  - raw:
      - |
        GET /index.asp HTTP/1.1
        Host: {{Hostname}}
        Accept-Encoding: gzip, deflate
        Authorization: Basic {{base64(username + ':' + password)}}

    attack: pitchfork
    payloads:
      username:
        - admin
      password:
        - admin

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "AR9344_GATEWAY"

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100cdee6efe12c1b8bd2155952998af171504c551719034318e167398650ad8dedd02207e21ef896816abd5ec55994e4c840b512f27609c35c0d7186f0f39a604d9ddf6:922c64590222798bb761d5b6d8e72950