subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
raise FileNotFoundError(f"Chromium 不存在: {chrome_path}") os.makedirs(PROFILE_DIR, exist_ok=True) proc = subprocess.Popen( [ chrome_path, "--headless=new",- Confidence
- 88% confidence
- Finding
- The script launches a browser with remote debugging enabled and with the unsafe --no-sandbox flag. Although it binds to 127.0.0.1, local processes could potentially attach to the debugging port during execution and access the authenticated browser context, making session theft or browser control possible.
