Skip to content

fix: sanitize shell/subprocess call in run_eval.py#3214

Open
orbisai0security wants to merge 1 commit into
bytedance:mainfrom
orbisai0security:fix-v007-subprocess-argument-injection
Open

fix: sanitize shell/subprocess call in run_eval.py#3214
orbisai0security wants to merge 1 commit into
bytedance:mainfrom
orbisai0security:fix-v007-subprocess-argument-injection

Conversation

@orbisai0security
Copy link
Copy Markdown
Contributor

Summary

Fix critical severity security issue in skills/public/skill-creator/scripts/run_eval.py.

Vulnerability

Field Value
ID V-007
Severity CRITICAL
Scanner multi_agent_ai
Rule V-007
File skills/public/skill-creator/scripts/run_eval.py:85
CWE CWE-78

Description: Skill scripts use subprocess.Popen and subprocess.run for code execution. The MCP tools handler (tools.py:140) passes unsanitized request arguments that flow into skill script execution without validation. This creates a command injection attack chain where attacker-controlled input from the MCP interface reaches subprocess calls. The project's own TODO.md acknowledges this risk by noting the need to replace subprocess.run in local_sandbox.py.

Changes

  • skills/public/skill-creator/scripts/run_eval.py

Verification

  • Build passes
  • Scanner re-scan confirms fix
  • LLM code review passed

Automated security fix by OrbisAI Security

Automated security fix generated by OrbisAI Security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant