T09 · Insecure Skill Coding Practices
- Location
scripts/mediainsight_client.py:49- Finding
Credentials Can Be Transmitted to Arbitrary User-Selected Endpoints
- Content
View full analysis
None: self.mcp_url = mcp_url.rstrip("/") self.authorization = authorization.strip() self.session_id: str | None = None def _request(self, payload: dict[str, Any]) -> dict[str, Any]: data = json.dumps(payload, ensure_ascii=False).encode("utf-8") request = Request(url=self.mcp_url, data=data, method="POST") request.add_header("Accept", "text/event-stream, application/json") request.add_header("Content-Type", "application/json") if self.authorization: request.add_header("Authorization", self.authorization) ``` ```python # scripts/mediainsight_client.py:174-188 def resolve_media_insight_auth( token: str, *, mcp_url: str = DEFAULT_MCP_URL, ...[truncated 3509 chars]- Remediation
View remediation
