os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
verify_path = Path(__file__).parent.parent / "verify.py" if verify_path.exists(): print("\n🔍 Verifying installation...") os.system(f"python {verify_path}") print("\n🎉 Expert Library Plus is ready to use!") print("Try: '请专家帮我设计一个产品'")- Confidence
- 90% confidence
- Finding
- The installer invokes a shell via os.system() to run verify.py, which is unsafe because shell execution is unnecessary here and can mis-handle paths or be influenced by environment/PATH resolution. Although verify_path is locally derived rather than directly user-controlled, installation scripts run with user trust and elevated sensitivity, so avoidable shell execution increases attack surface.
