A flaw was discovered in Keycloak Core package. When a user registers itself through registration flow, the "password" and "password-confirm" field from the form will occur as regular attributes in the users attributes. The password is also created, but the user attributes must not be there. This way, any entities (all users and clients with proper rights/roles) are able to retrieve the users passwords in clear-text.
Passwords for self-registered users are stored as cleartext attributes associated with the user.
Disable self-registration for users in all realms until patched.
{ "nvd_published_at": "2023-09-12T20:15:10Z", "cwe_ids": [ "CWE-256", "CWE-319" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2023-09-12T21:10:37Z" }