subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Execute with timeout try: result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 92% confidence
- Finding
- The bridge executes an external binary on every HTTP request using subprocess.run, passing attacker-influenced prompt content directly to a privileged local CLI that likely has OAuth-backed access and tool capabilities. Even without shell=True, this creates a powerful trust-boundary crossing: remote users can drive local agent behavior and potentially trigger sensitive actions through the oauth-coder toolchain.
