T09 · Insecure Skill Coding Practices
- Location
claw_harness_enhanced.py:319- Finding
Configurable Subprocess Executable Allows Arbitrary Local Code Execution
- Content
View full analysis
HarnessResult: cmd = [self.python_bin, "-m", self.module_name, command] cmd.extend(positional_args) for key, value in flag_args.items(): flag = f"--{key.replace('_', '-')}" if isinstance(value, bool): if value: cmd.append(flag) else: cmd.extend([flag, str(value)]) loop = asyncio.get_running_loop() def _exec() -> subprocess.CompletedProcess[str]: return subprocess.run( cmd, cwd=str(self.workspace), capture_output=True, text=True, timeout=self.timeout_sec, shell=False, ) ``` ### Technical Analysis The harness ...[truncated 2055 chars]- Remediation
View remediation
