subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for cmd in test_commands: try: result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 91% confidence
- Finding
- The script invokes other project scripts with subprocess as part of a 'security check'. Even though the command list is hardcoded and shell injection is not evident, executing repository code during a safety-verification step can trigger arbitrary side effects from those target scripts, undermining the claim that this checker only verifies local/security properties.
