Tainted flow: 'OAUTH_BASE_URL' from os.environ.get (line 31, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
_delete_credentials() resp = requests.post( f"{OAUTH_BASE_URL}/oauth/api/device/init", json={ "client_id": CLIENT_ID- Confidence
- 90% confidence
- Finding
- The OAuth base URL is taken directly from an environment variable and used to send authentication initialization data to a remote endpoint without validation. In this script, that request includes a derived device fingerprint client identifier, so an attacker who can influence the environment can redirect auth traffic to a malicious server and capture login/session metadata or conduct phishing-style OAuth interception.
