os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
import msal # noqa: F401 import requests # noqa: F401 except ImportError: os.system("python3 -m pip install --user msal requests python-dateutil tzlocal") def build_msal_app():- Confidence
- 95% confidence
- Finding
- The code executes a shell command to install dependencies automatically whenever imports fail. Although the command string is hardcoded and not directly influenced by user input, invoking the shell from a helper routine expands the skill's capabilities unexpectedly, can modify the host environment without consent, and may execute an unintended pip/python binary from PATH.
