subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""交叉验证:每个 agent 产出过 reason-verify,返回可靠度。""" if RV and os.path.exists(RV): tmp = os.path.join(SELF_DIR, "rv_tmp.json") r = subprocess.run([sys.executable, RV, "reason", "--question", "任务立场核查", "--answer", text, "--out", tmp], capture_output=True, text=True, timeout=60) if r.returncode == 0 and os.path.exists(tmp):- Confidence
- 70% confidence
- Finding
- subprocess module calls execute external commands. Without careful input validation, this enables command injection.
