os.system() or os exec-family call
- Category
- Dangerous Code Execution
- Confidence
- 85% confidence
- Finding
os.system() and os exec-family calls run shell commands with the process's full privileges, enabling arbitrary command execution.
- Content
python and os.path.normpath(python) != os.path.normpath(sys.executable) and not os.environ.get(_REEXEC_GUARD)): os.environ[_REEXEC_GUARD] = "1" os.execv(python, [python, *sys.argv]) key = saved.get("apiKey") if isinstance(key, str) and key: os.environ["FLOWX_LLM_API_KEY"] = key
