Tainted flow: 'headers' from os.environ.get (line 429, credential/environment) → requests.post (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
- Content
python headers = {"Authorization": oauth_header("POST", url, creds)} mime = MIME.get(path.suffix.lower()) or mimetypes.guess_type(path.name)[0] or "image/png" with path.open("rb") as fh: resp = requests.post( url, headers=headers, timeout=120, files={"media": (path.name, fh, mime)}, data={"media_category": "tweet_image"},
