Tainted flow: 'BASE_URL' from os.getenv (line 44, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
Returns output dict with check_pass, bodystyle. """ print(f"\n[step1] aa-detect …") r = requests.post( f"{BASE_URL}/api/v1/services/aigc/image2video/aa-detect", headers=_headers(async_mode=False), json={"model": "animate-anyone-detect-gen2", "input": {"image_url": image_url}},- Confidence
- 88% confidence
- Finding
- BASE_URL is taken from an environment variable and used to construct authenticated API requests. If an attacker can influence the runtime environment, they can redirect requests containing the Bearer token and user media URLs to an attacker-controlled endpoint, causing credential exfiltration and data leakage.
