Summary
A remotely triggerable OS command injection vulnerability affects Bluetooth-related operations in the D-Link R95 DHMAPI SOAP handler. If the vulnerable handler passes attacker-influenced inner_xml data to an operating-system command without safe handling, an attacker may execute commands on the device.
Affected context
The issue is reported in /bin/ssi in the DHMAPI SOAP handler of D-Link R95 101B06. It concerns Bluetooth adapter, device-list, scan, pairing, and unpairing operations that process the inner_xml argument. Risk depends on whether the affected SOAP interface is reachable and how it handles requests in the deployed environment.
Exploit preconditions
- Attack surface: DHMAPI SOAP handler reachable over a network
- Required access: Ability to send requests to the affected handler; authentication requirements are not established by the available description
- Trigger point: Processing of
inner_xmlby one of the reported Bluetooth-related functions - Why exploitation is possible: Attacker-controlled input may reach an operating-system command context without adequate separation or validation
Why this happens
The underlying bug is command injection: data supplied through inner_xml is handled in a way that allows it to influence an operating-system command. This aligns with CWE-78: Improper Neutralization of Special Elements used in an OS Command. The related CWE-77 describes the broader class of command-injection weaknesses. The insecure pattern is building or invoking commands with untrusted input rather than using safe APIs and strict argument boundaries.
Potential impact
- An attacker could execute commands with the privileges of the affected service
- Device settings or Bluetooth-related behavior may be altered
- Sensitive information accessible to the service may be exposed
- The device could be disrupted or used as a foothold for further activity, depending on its configuration and network position
General mitigation guidance
Defensive approaches focus on preventing untrusted request data from becoming executable command syntax:
- Prefer dedicated APIs over shell or command-string construction
- Pass arguments through APIs that preserve argument boundaries, and avoid invoking a shell where possible
- Apply strict allowlists and schema validation to request fields, including
inner_xml - Limit the service's operating-system privileges and access to sensitive resources
- Restrict network access to the SOAP interface to trusted systems and minimize its exposure
How teams detect issues like this
Review command execution paths in the SOAP handler and trace whether request-derived values can reach them. Static analysis can flag shell invocation, command-string construction, and unsafe concatenation involving request data. Code reviews can check for strict input schemas, safe argument handling, and least-privilege execution. Network and application logs may help identify unusual requests to the affected Bluetooth operations; policy checks can prohibit shell-based execution in request-processing code.

