Tainted flow: 'rtsp_url' from os.environ.get (line 174, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
with tempfile.NamedTemporaryFile(suffix='.jpg', delete=False) as f: output_path = f.name subprocess.run([ 'ffmpeg', '-y', '-rtsp_transport', 'tcp', '-i', rtsp_url, '-frames:v', '1', '-q:v', '2', '-f', 'image2', output_path- Confidence
- 88% confidence
- Finding
- subprocess.run([ 'ffmpeg', '-y', '-rtsp_transport', 'tcp', '-i', rtsp_url, '-frames:v', '1', '-q:v', '2', '-f', 'image2', output_path ], capture_out
