Tainted flow: 'req' from os.environ.get (line 163, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 90% confidence
- Finding
OAB_BASE_URL accepts arbitrary endpoints, including plaintext HTTP, while posting and board creation send the persistent user secret from the same local credential store regardless of destination. An unsafe testing override or attacker-influenced environment can therefore disclose a production identity credential to another server or network observer; this is conditional credential exposure, not evidence of intentional exfiltration.
- Content
python for attempt in range(2): req = urllib.request.Request(url, data=data, method=method, headers=headers) try: with urllib.request.urlopen(req, timeout=30) as resp: raw = resp.read() return json.loads(raw) if raw else None except urllib.error.HTTPError as e:
