Tainted flow: 'url' from os.environ.get (line 235, credential/environment) → requests.post (network output)
Critical
- 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
- 94% confidence
- Finding
- The code sends sensitive data, including login credentials, access tokens, refresh tokens, and generated API tokens, to URLs derived from environment-controlled base endpoints. If an attacker can influence LINKFOX_LOGIN_API_URL or LINKFOX_AGENT_USER_API_URL, the CLI will exfiltrate secrets to an attacker-controlled server. This is more dangerous because the file’s stated skill scope is Shopee store operations, but the code performs unrelated account onboarding and token issuance.
