Tainted flow: 'url' from httpx.post (line 54, network input) → httpx.get (network output)
Medium
- Category
- Data Flow
- Content
if args.mode == "image": url = generate_image(api_key, args.prompt, args.size, args.seed, args.image_urls) # Download the image resp = httpx.get(url) ext = "jpg" if b"JPEG" in resp.content else "png" file_path = output_dir / f"image_{int(time.time())}.{ext}" file_path.write_bytes(resp.content)- Confidence
- 89% confidence
- Finding
- resp = httpx.get(url)
