os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
from playwright.sync_api import sync_playwright, TimeoutError as PlaywrightTimeout except ImportError: print("Installing playwright...") os.system(f"{sys.executable} -m pip install playwright -q") os.system(f"{sys.executable} -m playwright install chromium -q") from playwright.sync_api import sync_playwright, TimeoutError as PlaywrightTimeout- Confidence
- 92% confidence
- Finding
- os.system(f"{sys.executable} -m pip install playwright -q")
