T09 · Insecure Skill Coding Practices
- Location
scripts/client.py:17- Finding
Unrestricted API Destination Can Receive User Identity and Sensitive Pipeline Data
- Content
View full analysis
Dict[str, Any]: url = f"{self.bff_url}{endpoint}" headers = { 'X-User-Account': self.domain_account } try: if method.upper() == 'GET': response = self.session.get(url, params=params, headers=headers) elif method.upper() == 'POST': response = self.session.post(url, json=data, headers=headers) elif method.upper() == 'DELETE': response = self.session.delete(url, headers=headers) ``` ### Technical Analysis The client obtains the API base URL directly from the `DEVOPS_BFF_URL` environment variable and concatenates it with privileged API endpoints. It does not parse or validate the URL's scheme, hostname, port, user-information component, or resolved network address. Every request automatically includes the user's domain account in `X-User-Account`. POST requests can additionally contain complete pipeline configurations, task parameters, repository URLs, branch information, package metadata, deployment settings, and execution parameters. Outbound network access is necessary for t ...[truncated 2057 chars]- Remediation
View remediation
