Tainted flow: 'cmd' from os.environ.get (line 512, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
frame_path = str(temp_dir / "subtitle_check.jpg") ffmpeg = config['ffmpeg_path'] cmd = [ffmpeg, "-y", "-ss", "30", "-i", video_path, "-vframes", "1", "-q:v", "2", frame_path] result = subprocess.run(cmd, capture_output=True) if not os.path.exists(frame_path): print(" [!] 无法提取视频帧,默认不覆盖")- Confidence
- 86% confidence
- Finding
- result = subprocess.run(cmd, capture_output=True)
