Summary
Qihoo 360 Whole Home Router M5 firmware contains hard-coded credentials in the Boot Script's Home function in /etc/init.d/mpt. If those credentials are accepted by a remotely reachable router function, an attacker may be able to gain unauthorized access; public exploit availability increases the risk.
Affected context
The issue is reported in Qihoo 360 Whole Home Router M5 firmware 4.0.17.1566 and involves the Home function in the /etc/init.d/mpt Boot Script. Risk depends on whether the embedded credentials remain usable and can be presented to a remotely reachable router function. The disclosure reports that remote exploitation is possible but does not specify the affected interface or the credentials' privileges.
Exploit preconditions
- Attack surface: A remotely reachable router function that accepts the embedded credentials
- Required access: The description does not indicate that prior access is required; network reachability and acceptance of the credentials are relevant conditions
- Trigger point: Authentication to the affected functionality using credentials embedded in the Boot Script
- Why exploitation is possible: Fixed credentials can be discovered or reused by attackers rather than being unique to a device
- Exploit availability: The description reports that a public exploit exists
Why this happens
The underlying issue is the inclusion of authentication credentials in a software component rather than provisioning unique secrets securely. This maps primarily to CWE-798: Use of Hard-coded Credentials and is also related to CWE-259: Use of Hard-coded Password. If the embedded credentials are accepted by an exposed function, an attacker who obtains them may bypass intended access controls.
Potential impact
- An attacker may gain unauthorized access to router functionality.
- Depending on the credentials' privileges, an attacker could alter device settings or disrupt network services.
- A compromised router could be used as a foothold for further activity on connected networks.
- Reuse of the same credentials across devices could increase the scope of compromise.
General mitigation guidance
Defensive approaches generally focus on removing shared, embedded secrets and limiting exposure of device management functions.
- Provision unique credentials per device through a protected setup process.
- Avoid storing reusable credentials in scripts or other accessible firmware files.
- Rotate credentials that may have been exposed and invalidate embedded defaults where possible.
- Restrict remote management to trusted networks and apply least privilege to device functions.
- Monitor authentication activity and provide secure, supported mechanisms for applying remediation.
How teams detect issues like this
- Use static analysis and firmware review to identify credentials embedded in scripts, configuration files, or binaries.
- Review the
Homefunction and related boot-script authentication behavior for fixed secrets. - Check device-management policies for unnecessary remote exposure and shared default credentials.
- Monitor for unexpected authentication attempts and configuration changes.
- Use code-review and release policies that prohibit hard-coded credentials and require secure per-device provisioning.

