os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
cmd = f"bash {script} {output_path}" if display_id: cmd = f"SV_DISPLAY={display_id} {cmd}" ret = os.system(cmd) return ret == 0 and os.path.exists(output_path)- Confidence
- 97% confidence
- Finding
- The screenshot command is built as a shell string and executed with os.system(), incorporating output_path and optionally display_id without shell-safe escaping. If either value is attacker-controlled via CLI/config/environment, this enables shell injection and arbitrary command execution in the context of the skill process.
