Tainted flow: 'req' from os.environ.get (line 25, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
method="POST", ) try: with urllib.request.urlopen(req, timeout=30) as resp: data = json.loads(resp.read().decode("utf-8")) return data except urllib.error.HTTPError as e:- Confidence
- 92% confidence
- Finding
- The proxy request target is taken from the RG_PROXY environment variable and used directly in urllib.request.urlopen, so deployment-time configuration can silently redirect all flight/hotel/seat/baggage queries and the attached bearer token to an arbitrary endpoint. In this skill’s context, those requests contain travel itinerary details and may include Authorization credentials, making SSRF-style misrouting, data exfiltration, or credential leakage plausible if the runtime environment is misconfigured or compromised.
