Tainted flow: 'audio_url' from os.getenv (line 177, credential/environment) → requests.get (network output)
Critical
- Category
- Data Flow
- Content
filename = f"{safe_title}_{timestamp}.mp3" filepath = os.path.join(save_dir, filename) response = requests.get(audio_url, timeout=60) with open(filepath, 'wb') as f: f.write(response.content)- Confidence
- 93% confidence
- Finding
- The script downloads from audio_url returned by the external API without validating the scheme, host, or content type. If the upstream service is compromised or returns a malicious/internal URL, this can trigger server-side request forgery behavior from the local machine and cause untrusted content to be written to disk.
