Tainted flow: 'req' from os.environ.get (line 92, credential/environment) → urllib.request.urlopen (network output)
- Category
- Data Flow
- Confidence
- 92% confidence
- Finding
The request target is partially controlled by the PREDGE_API_BASE environment variable, so the skill can be redirected to an arbitrary endpoint. In this observe-only skill that mainly risks data exfiltration of queried market identifiers and, more importantly, trust decisions being made from attacker-controlled responses, especially because attestation verification is only used for display and not enforced before gating.
- Content
python url = f"{base}/v1/settlement-risk/{urllib.parse.quote(market.strip(), safe='')}" req = urllib.request.Request(url, headers={"accept": "application/json", "user-agent": f"simmer-skill/{SKILL_SLUG}"}) try: with urllib.request.urlopen(req, timeout=timeout, context=_ssl_context()) as resp: return json.loads(resp.read().decode("utf-8")) except urllib.error.HTTPError as e: try:
