Summary
DroidMind through 0.4.0 contains a command injection vulnerability that allows MCP clients to bypass the shell command allowlist by using $(...) or backtick substitution. Attackers, including prompt-injected agents, can inject commands through parameters interpolated into Device.run_shell() or unvalidated Device.list_directory() to run blocked commands such as reboot on connected Android devices.
Remediation
References
- Advisoryhttps://www.vulncheck.com/advisories/droidmind-through-0.4.0-command-injection-via-shell-allowlist-bypass
- Referencehttps://github.com/hyperb1iss/droidmind
- Referencehttps://github.com/hyperb1iss/droidmind/blob/v0.4.0/droidmind/security.py#L338-L402
- Referencehttps://github.com/hyperb1iss/droidmind/issues/17