subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def run(cmd): try: out = subprocess.check_output(cmd, stderr=subprocess.STDOUT, text=True, timeout=15) return out.strip() except Exception as e: return f'ERROR: {e}'- Confidence
- 98% confidence
- Finding
- The helper executes shell commands built from untrusted user input via `bash -lc`, and the domain value is interpolated directly into command strings for `whois` and `dig`. A crafted domain like `example.com; curl attacker` could trigger arbitrary command execution on the host running the skill, which is a real command injection risk despite using `check_output` with a list because the actual invoked program is a shell.
