Tainted flow: 'fpath' from os.environ.get (line 200, credential/environment) → open (file write)
Medium
- Category
- Data Flow
- Content
*由 xiaoyaoclaw-web-clipper 自动剪藏* """ with open(fpath, "w", encoding="utf-8") as f: f.write(md) # 更新索引- Confidence
- 73% confidence
- Finding
- The output path is influenced by CLIPPER_OUTPUT_DIR or the --dir argument and is used directly for file creation, allowing writes to arbitrary filesystem locations accessible to the process. In a local CLI tool this is often expected behavior, but in an agent or automated skill context it becomes more dangerous because external orchestration or environment manipulation could redirect writes into sensitive directories, overwrite operational files, or plant content for later processing.
