WuKongIM 2.0.8-20241129 through 2.2.5-20260422 contains an authentication bypass vulnerability that allows unauthenticated attackers to access manager APIs using a hardcoded default JWT secret. Attackers can forge HS256 tokens signed with secret_wukongim to read message history, enumerate users and connections, and kick connections or migrate slots and channels.
https://hackmd.io/@hieund/wukongim-default-jwt-secret-manager-api-auth-bypass
https://github.com/WuKongIM/WuKongIM/pull/1167
https://github.com/WuKongIM/WuKongIM/issues/1051
https://github.com/WuKongIM/WuKongIM/blob/v2.2.5-20260422/internal/options/options.go#L705-L714
https://github.com/WuKongIM/WuKongIM/blob/v2.2.5-20260422/internal/api/server_manager.go#L157-L189