Summary
The Amlogic pppoe_wrapper daemon on affected Nexbox A95X TV boxes passes message content to a shell without adequate filtering. A local attacker able to send messages to its world-writable Unix datagram socket may execute commands with root privileges.
The Amlogic pppoe_wrapper daemon on affected Nexbox A95X TV boxes passes message content to a shell without adequate filtering. A local attacker able to send messages to its world-writable Unix datagram socket may execute commands with root privileges.
Affected context
The vulnerability is associated with the pppoe_wrapper vendor daemon in the Amlogic Android SDK as shipped on Nexbox A95X devices using Amlogic S905/S905X. It becomes a risk where the daemon accepts messages through /dev/socket/pppoe_wrapper and passes attacker-influenced content to a shell command without safe handling.
The vulnerability is associated with the pppoe_wrapper vendor daemon in the Amlogic Android SDK as shipped on Nexbox A95X devices using Amlogic S905/S905X. It becomes a risk where the daemon accepts messages through /dev/socket/pppoe_wrapper and passes attacker-influenced content to a shell command without safe handling.
Exploit preconditions
- Attack surface: The daemon's AF_UNIX datagram socket at
/dev/socket/pppoe_wrapper - Required access: Local ability to send messages to the socket; its world-writable permissions may make it accessible to unprivileged local users
- Trigger point: The daemon processes a received message and invokes a shell command
- Why exploitation is possible: Untrusted message content reaches
system(3)without adequate filtering, and the command runs as root
- Attack surface: The daemon's AF_UNIX datagram socket at
/dev/socket/pppoe_wrapper - Required access: Local ability to send messages to the socket; its world-writable permissions may make it accessible to unprivileged local users
- Trigger point: The daemon processes a received message and invokes a shell command
- Why exploitation is possible: Untrusted message content reaches
system(3)without adequate filtering, and the command runs as root
Why this happens
The daemon constructs a shell command using attacker-influenced input and passes it to system(3), which invokes /system/bin/sh -c. Shell interpretation of that input can cause unintended commands to run. This is CWE-78: Improper Neutralization of Special Elements used in an OS Command, commonly called OS command injection.
The daemon constructs a shell command using attacker-influenced input and passes it to system(3), which invokes /system/bin/sh -c. Shell interpretation of that input can cause unintended commands to run. This is CWE-78: Improper Neutralization of Special Elements used in an OS Command, commonly called OS command injection.
Potential impact
- An attacker with access to the socket could execute commands with root privileges
- The device's operating system and data could be compromised
- Device settings or software could be altered without authorization
- A compromised device could potentially be used as a foothold for further activity on connected networks
- An attacker with access to the socket could execute commands with root privileges
- The device's operating system and data could be compromised
- Device settings or software could be altered without authorization
- A compromised device could potentially be used as a foothold for further activity on connected networks
General mitigation guidance
Defensive approaches generally focus on removing shell interpretation from message handling and limiting access to privileged operations.
- Prefer direct APIs or fixed-argument process execution over shell command construction
- Validate inputs against a strict allowlist of expected values and reject unexpected content
- Apply least privilege so the daemon does not run as root unless essential
- Restrict socket permissions and access to explicitly authorized clients
- Keep privileged request handling minimal and separate from parsing untrusted data
Defensive approaches generally focus on removing shell interpretation from message handling and limiting access to privileged operations.
- Prefer direct APIs or fixed-argument process execution over shell command construction
- Validate inputs against a strict allowlist of expected values and reject unexpected content
- Apply least privilege so the daemon does not run as root unless essential
- Restrict socket permissions and access to explicitly authorized clients
- Keep privileged request handling minimal and separate from parsing untrusted data
How teams detect issues like this
Review daemon code for message data flowing into system(), shell invocations, or dynamically constructed commands. Static analysis can flag shell execution APIs that receive externally controlled values; code review should also examine Unix socket permissions, caller validation, and the daemon's runtime privileges. Policy checks can restrict shell-based command execution and world-writable IPC endpoints, while runtime monitoring may help identify unexpected root processes spawned by the daemon.
Review daemon code for message data flowing into system(), shell invocations, or dynamically constructed commands. Static analysis can flag shell execution APIs that receive externally controlled values; code review should also examine Unix socket permissions, caller validation, and the daemon's runtime privileges. Policy checks can restrict shell-based command execution and world-writable IPC endpoints, while runtime monitoring may help identify unexpected root processes spawned by the daemon.

