Unvalidated Output Injection
High
- Category
- Output Handling
- Content
"default=noprint_wrappers=1:nokey=1", str(video_path), ] result = subprocess.run(command, capture_output=True, text=True) if result.returncode != 0: fail(f"ffprobe 获取时长失败: {result.stderr.strip() or result.stdout.strip()}", EXIT_AUDIO_EXTRACT)- Confidence
- 78% confidence
- Finding
- On failure, the code prints ffprobe stderr/stdout directly into logs. Because media metadata and parser errors can incorporate attacker-controlled file names or crafted content, this can enable terminal/log injection such as forged log lines or ANSI escape sequence abuse in downstream consoles and log viewers.
