subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
仅提取 B站 相关域名, 不导出其他网站; 保存为 600 权限.""" try: cmd = [find_ytdlp_python(), str(SCRIPTS_DIR / "extract_cookies.py"), browser, str(output)] subprocess.run(cmd, check=True, capture_output=True, text=True, timeout=60) if output.exists() and output.stat().st_size > 0: os.chmod(output, 0o600) return True- Confidence
- 94% confidence
- Finding
- The skill executes a local helper script to extract browser cookies and persist them to `cookies.txt`. Even without shell injection, this is a high-risk credential-handling behavior because it accesses sensitive browser authentication material unrelated to a simple summarization task and stores reusable login state on disk for long-lived reuse.
