subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: if sys.platform.startswith("win"): creationflags = subprocess.CREATE_NEW_PROCESS_GROUP | subprocess.DETACHED_PROCESS proc = subprocess.Popen( args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,- Confidence
- 88% confidence
- Finding
- The code launches an executable path derived in part from environment variables (`CHROME_PATH`) and executes it via `subprocess.Popen`. While it avoids shell injection by passing an argument list, an attacker who can control the environment can cause the tool to execute an arbitrary local binary, which is especially sensitive in an agent/automation context.
