subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"python_path": python_path, "env_path": env_info.get('audioProject_path'), "conda_version": env_info.get('conda_version'), "detected_at": subprocess.run( 'date /T && time /T', shell=True, capture_output=True,- Confidence
- 97% confidence
- Finding
- This code invokes a shell with `shell=True` to execute `date /T && time /T`. Even though the command string is static, shell execution unnecessarily increases attack surface and can be influenced by platform-specific command resolution or environment manipulation, making it riskier than using native Python time APIs.
