Tainted flow: 'url' from os.getenv (line 42, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
"caption": caption, "privacy_level": privacy_level, } resp = requests.post(url, headers=headers, json=payload) try: resp.raise_for_status() except Exception as e:- Confidence
- 93% confidence
- Finding
- The request target is derived from the environment variable POSTIZ_API_URL with no validation, so a compromised runtime environment can redirect authenticated API calls to an attacker-controlled host. Because the Authorization bearer token and draft content are sent in the request, this can leak credentials and content and enable SSRF-style outbound connections.
