T09 · Insecure Skill Coding Practices
- Location
scripts/openwebui-cli.py:35- Finding
Bearer Token and Sensitive User Data Can Be Transmitted over Plaintext HTTP
- Content
View full analysis
str: """Build full URL from endpoint.""" return urljoin(self.base_url + "/", endpoint.lstrip("/")) def _request(self, method: str, endpoint: str, **kwargs) -> dict: """Execute HTTP request with error handling.""" url = self._url(endpoint) verify = not (self.base_url.startswith("http://localhost") or self.base_url.startswith("http://127.0.0.1")) try: response = self.session.request(method, url, verify=verify, **kwargs) response.raise_for_status() return response.json() if response.content else {} ``` The file-upload path independently sends the same bearer credential and selected file contents: ```python def upload_file(self, file_path: str, process: bool = True) -> dict: """POST /api/v1/files/ - Upload file for RAG.""" path = Path(file_path) if not path.exists(): raise FileNotFoundError(f"File not found: {file_path}") ...[truncated 3542 chars]- Remediation
View remediation
