T09 · Insecure Skill Coding Practices
- Location
SKILL.md:152- Finding
Configurable Network Destination Can Expose Credentials and Sensitive Taxpayer Data
- Content
View full analysis
dict: """Execute a GreenHelix gateway tool.""" response = requests.post( f"{GATEWAY_URL}/v1", headers={ "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json", }, json={"tool": tool_name, "input": tool_input}, ) response.raise_for_status() return response.json() ``` The wrapper is subsequently used to transmit taxpayer information: ```python claim = execute_tool("build_claim_chain", { "agent_id": agent_id, "claims": [ { "type": "beneficial_owner", "subject": taxpayer_info["taxpayer_id"], "evidence": { "ein_last_four": taxpayer_info.get("ein_last_four"), "entity_type": taxpayer_info["entity_type"], "jurisdiction": taxpayer_info["jurisdiction"], "attestation_date": datetime.utcnow().isoformat(), }, }, { "type": "dominion_and_control", "subject": taxpayer_info["taxpayer_id"], "evidence": { "wallet_access": "deployer_controlled", "withdrawal_authority": "deployer_only", "api_key_holder": taxpayer_info["taxpayer_id"], }, }, ], }) ``` ### Technical Analysis The `GREENHELIX_API_URL` environment variable fully controls the origin receiving both the bearer authorization header and the request body. The code does not validate the scheme, hostname, port, resolved address, or redirect destination against an allowlist. If an attacker can influence t ...[truncated 2278 chars]- Remediation
View remediation
