T09 · Insecure Skill Coding Practices
- Location
runtime/crun_cli.py:199- Finding
API Key Disclosure Through Arbitrary and Insecure API Endpoints
- Content
View full analysis
Any: url = f"{self.base_url}{path}" if query: filtered = {key: value for key, value in query.items() if value is not None} if filtered: url = f"{url}?{urlencode(filtered)}" data = json.dumps(body).encode("utf-8") if body is not None else None request = Request( url, data=data, method=method, headers={ "Accept": "application/json", "Content-Type": "application/json", "X-API-KEY": self.api_key, "User-Agent": "crun-agent-skills/1", }, ) attempts = self.request_retries ...[truncated 2607 chars]- Remediation
View remediation
