Summary
Qihoo 360 D603-2, D600-2, and D606-6 devices are affected by an OS command injection vulnerability in the Timezone Push Handler. A remotely supplied or manipulated tz argument may be interpreted as part of an operating-system command when the handler processes a push message.
Qihoo 360 D603-2, D600-2, and D606-6 devices are affected by an OS command injection vulnerability in the Timezone Push Handler. A remotely supplied or manipulated tz argument may be interpreted as part of an operating-system command when the handler processes a push message.
Affected context
The issue affects the on_push_message function in /fs2/bin/iscm in the Timezone Push Handler on the specified Qihoo 360 device models through firmware version 6.3.2. Risk depends on whether the handler can receive attacker-controlled timezone data and how that data is used when constructing commands. Firmware 6.4.0 adds a timezone parameter validation check, according to the vulnerability description.
The issue affects the on_push_message function in /fs2/bin/iscm in the Timezone Push Handler on the specified Qihoo 360 device models through firmware version 6.3.2. Risk depends on whether the handler can receive attacker-controlled timezone data and how that data is used when constructing commands. Firmware 6.4.0 adds a timezone parameter validation check, according to the vulnerability description.
Exploit preconditions
- Attack surface: The Timezone Push Handler, which may be reachable remotely
- Required access: The description does not specify whether authentication or prior access is required
- Trigger point: Processing a push message in
on_push_messagethat uses thetzargument - Why exploitation is possible: The argument may reach command execution without adequate validation or safe handling
- Attack surface: The Timezone Push Handler, which may be reachable remotely
- Required access: The description does not specify whether authentication or prior access is required
- Trigger point: Processing a push message in
on_push_messagethat uses thetzargument - Why exploitation is possible: The argument may reach command execution without adequate validation or safe handling
Why this happens
The handler processes the tz argument in a way that can allow supplied data to alter an operating-system command. This is OS command injection, classified as CWE-78; it is also related to CWE-77, which covers improper neutralization of special elements in a command. The underlying insecure pattern is incorporating externally influenced input into a command without safely separating data from command syntax.
The handler processes the tz argument in a way that can allow supplied data to alter an operating-system command. This is OS command injection, classified as CWE-78; it is also related to CWE-77, which covers improper neutralization of special elements in a command. The underlying insecure pattern is incorporating externally influenced input into a command without safely separating data from command syntax.
Potential impact
- An attacker may execute operating-system commands on an affected device
- Device settings or files could be modified
- The device may be disrupted or compromised
- A compromised device could provide a foothold for further attacks, depending on its network access and privileges
- An attacker may execute operating-system commands on an affected device
- Device settings or files could be modified
- The device may be disrupted or compromised
- A compromised device could provide a foothold for further attacks, depending on its network access and privileges
General mitigation guidance
Defensive measures generally focus on preventing externally influenced values from becoming command syntax.
- Prefer APIs that pass arguments directly to a process rather than invoking a shell
- Validate timezone values against a strict allowlist of supported formats or identifiers
- Keep command execution and input parsing separate, and reject unexpected values
- Apply least privilege to the service handling timezone updates
- Limit remote access to the push-handler interface and monitor its use
Defensive measures generally focus on preventing externally influenced values from becoming command syntax.
- Prefer APIs that pass arguments directly to a process rather than invoking a shell
- Validate timezone values against a strict allowlist of supported formats or identifiers
- Keep command execution and input parsing separate, and reject unexpected values
- Apply least privilege to the service handling timezone updates
- Limit remote access to the push-handler interface and monitor its use
How teams detect issues like this
- Use static analysis to identify shell or command execution APIs that receive externally influenced values
- Review code paths from push-message fields to process creation, especially handling of
tz - Check whether validation occurs before command construction and whether it uses an allowlist
- Apply policies that restrict shell invocation and require review of externally reachable command-execution paths
- Monitor device logs and process activity for unexpected commands associated with timezone updates
- Use static analysis to identify shell or command execution APIs that receive externally influenced values
- Review code paths from push-message fields to process creation, especially handling of
tz - Check whether validation occurs before command construction and whether it uses an allowlist
- Apply policies that restrict shell invocation and require review of externally reachable command-execution paths
- Monitor device logs and process activity for unexpected commands associated with timezone updates
Sources
| Source | Link |
|---|---|
| gist. | gist.github.com/ |
| vuldb. | vuldb.com/ |
| vuldb. | vuldb.com/ |
| vuldb. | vuldb.com/ |
| vuldb. | vuldb.com/ |

