subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: if stype == 'run': # 调用 run.py,传查询词 result = subprocess.run( [sys.executable, path, query, '--json'], capture_output=True, text=True, timeout=20, encoding='utf-8', errors='replace'- Confidence
- 97% confidence
- Finding
- The code executes arbitrary discovered skill scripts from local skills directories without any trust verification, allowlist, signature check, or confirmation. In this skill context, discovery plus automatic execution materially expands capability from search aggregation to arbitrary code execution under the current user, making any malicious or trojanized 'search-like' skill a direct execution path.
