T09 · Insecure Skill Coding Practices
- Location
src/protocols/websocket_server.py:113- Finding
Unauthenticated WebSocket Service Exposed on All Network Interfaces
- Content
View full analysis
None: connection_id = self.generate_connection_id() connection = WebSocketConnection(connection_id, websocket) create_default_message_handlers(connection) self.connections[connection_id] = connection if self.on_connection_open: try: await self.on_connection_open(connection) except Exception as e: logger.error(f"Connection-open callback failed: {e}") try: await connection.connect() await self._message_loop(connection) except ConnectionClosed: logger.info(f"Connection closed normally: {connection_id}") except Exception as e: logger.error(f"Connection handling failed: {e}") finally: await self._cleanup_connection(connection_id) ``` The security configuration declares controls that are not enforced by the server: ```python class SecurityConfig: privacy_level: PrivacyLevel = PrivacyLevel.STANDARD encrypti ...[truncated 2391 chars]- Remediation
View remediation
