An authorization bypass exists in the middleware layer `kubeClientMiddleware` within the `api/http/handler/kubernetes/handler.go` file. The middleware validates user tokens before forwarding traffic to Kubernetes clusters; however, when the `security.RetrieveTokenData()` function returns an error, the system writes an HTTP 403 response but fails to stop execution. This allows the request to proceed to the handler with a nil `tokenData` value, bypassing authorization checks. An attacker with a valid Portainer session can use this flaw to read or modify Kubernetes resources, such as pods, secrets, config maps, and deployments, on target endpoints that their role should not permit. This could potentially lead to lateral movement if sensitive credentials are recovered from Kubernetes secrets.