Tainted flow: 'url' from os.environ.get (line 235, credential/environment) → requests.post (network output)
- Category
- Data Flow
- Content
except RuntimeError as e: return {"_error": str(e)} try: r = requests.post(url, json=body or {}, headers=headers, timeout=timeout) return r.json() except Exception as e: body_text = ""- Confidence
- 91% confidence
- Finding
- The script builds request destinations from environment-controlled base URLs and then sends sensitive data to them via requests.post. Because this same file handles phone numbers, SMS codes, bearer tokens, and API-token generation, a hostile or misconfigured environment can redirect authentication traffic to an attacker-controlled endpoint and exfiltrate credentials.
