Tainted flow: 'word_count' from sys.stdin.read (line 186, user input) → subprocess.run (code execution)
Critical
- Category
- Data Flow
- Content
# ── 步骤3: state_manager.update-sub — 即时状态标记 ── word_count = len(content.replace("\n", "")) state_manager = SCRIPTS_DIR / "novel_state_manager.py" result = subprocess.run( [sys.executable, str(state_manager), "update-sub", state_path, chapter, sub_key, str(word_count)], capture_output=True, text=True, encoding="utf-8"- Confidence
- 90% confidence
- Finding
- result = subprocess.run( [sys.executable, str(state_manager), "update-sub", state_path, chapter, sub_key, str(word_count)], capture_output=True, text=True, encoding="utf-8
