exec() call detected
High
- Category
- Dangerous Code Execution
- Content
v3_script = Path(__file__).parent / "fetch_news_v3.py" if v3_script.exists(): with open(v3_script, "r", encoding="utf-8") as f: exec(f.read()) else: print("错误:fetch_news_v3.py 不存在") sys.exit(1)- Confidence
- 99% confidence
- Finding
- The script reads and executes the full contents of fetch_news_v3.py via exec(), which gives that file unrestricted code execution in the current process. Even though the path is local, this is dangerous in a skill ecosystem because any tampering, replacement, or unexpected content in that file immediately becomes arbitrary code execution with the agent's privileges.
