os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
with open(test_file, 'w', encoding='utf-8') as f: f.write(test_script) os.system(f"cd {skill_dir} && python3 test_fix_result.py") # 清理测试文件 if os.path.exists(test_file):- Confidence
- 95% confidence
- Finding
- os.system(f"cd {skill_dir} && python3 test_fix_result.py")
