subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
}) try: result = subprocess.run( [sys.executable, str(actual_script)], capture_output=True, timeout=_CGI_TIMEOUT,- Confidence
- 94% confidence
- Finding
- The server executes `index.py` files as subprocesses in response to HTTP requests, which creates a direct remote code execution surface whenever CGI is enabled and an attacker can influence webroot/plugin contents. Although the code restricts execution to `index.py` and verifies plugin hashes for one fallback path, webroot CGI is unrestricted and plugin directory handling does not consistently hash-check every executed `index.py`, so this is a real and dangerous execution primitive in the skill context.
