Tainted flow: 'req' from os.environ.get (line 139, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
headers={"Content-Type": "application/json"}, method="POST", ) try: with urllib.request.urlopen(req, timeout=20) as resp: body = json.load(resp) if "error" in body: err = body["error"]- Confidence
- 92% confidence
- Finding
- The RPC client sends POST requests to RPC_URL, which is taken directly from the SOLANA_RPC_URL environment variable without validation. In an agent environment, a malicious or misconfigured endpoint could cause server-side request forgery behavior, exfiltrate queried wallet/activity data to an attacker-controlled host, or return deceptive blockchain data that influences downstream decisions.
