os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
import feedparser except ImportError: print("Installing required package: feedparser") os.system(f"{sys.executable} -m pip install feedparser") import feedparser # HTTP requests- Confidence
- 98% confidence
- Finding
- The script invokes a shell to run pip installation at runtime, which introduces command execution and supply-chain risk in a context that only needs RSS fetching and webhook delivery. Even though the interpolated values are not directly user-controlled here, automatically executing package installation can pull unpinned code from external repositories and modify the host environment without approval.
