Summary
The Weixin Auth Endpoint in affected Chengdu Feiyuxing devices is reported to have an OS command injection vulnerability when it processes the extend argument. Because the endpoint can be reached remotely, an attacker who can submit input that reaches the vulnerable handler may execute commands in the device's context; public exploit information is reported to be available.
Affected context
The reported issue affects the Weixin Auth Endpoint function handle_wechat_cn_wifi in var/html/webserver on Chengdu Feiyuxing Technology VW2100 and VEC10GP devices running build B-MB3W202-210825-r11775. The vulnerability is associated with processing the extend argument. Exploitability depends on whether the endpoint is reachable and how the device handles requests; the available description does not establish whether authentication is required.
Exploit preconditions
- Attack surface: The Weixin Auth Endpoint, which is reported as remotely reachable.
- Required access: The description does not specify whether authentication or other access controls are required.
- Trigger point: Processing of the
extendargument byhandle_wechat_cn_wifi. - Why exploitation is possible: The argument is reportedly handled in a way that allows OS command injection.
- Exploit availability: Public exploit information is reported to exist; this does not by itself establish that every deployment is exploitable.
Why this happens
The reported flaw is an unsafe boundary between request data and operating-system command handling. If input from extend is incorporated into a command without robust separation and validation, attacker-controlled data may be interpreted as command syntax. This is primarily CWE-78: Improper Neutralization of Special Elements used in an OS Command, a specific form of the broader CWE-77: Command Injection weakness.
Potential impact
- An attacker may execute operating-system commands with the privileges of the affected service.
- The device could be compromised, disrupting its operation or integrity.
- Sensitive device data or configuration could be exposed or altered.
- A compromised device could potentially be used to affect other systems reachable from its network.
General mitigation guidance
Defensive approaches generally focus on preventing request data from becoming executable command content:
- Prefer APIs that invoke a specific operation directly rather than constructing shell commands.
- Where subprocesses are necessary, pass arguments as separate values and avoid shell interpretation.
- Apply strict allowlists and type or range validation to values used by the handler.
- Minimize the privileges and system access available to the service.
- Restrict endpoint exposure through network segmentation and access controls, and monitor unexpected device behavior.
How teams detect issues like this
- Review command execution paths called by
handle_wechat_cn_wifiand trace howextendis used. - Use static analysis to identify shell invocation, command-string construction, and request-derived data flowing into command arguments.
- In code review, check for missing allowlist validation and unsafe reliance on string escaping.
- Apply policy checks that discourage shell-based command execution and require review of externally supplied data crossing process boundaries.
- Monitor endpoint activity and device processes for anomalous command execution, while recognizing that logs may not capture every attempt.

