GHSA-5q66-v53q-pm35

Suggest an improvement
Source
https://github.com/advisories/GHSA-5q66-v53q-pm35
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/09/GHSA-5q66-v53q-pm35/GHSA-5q66-v53q-pm35.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-5q66-v53q-pm35
Aliases
Published
2023-09-12T21:10:37Z
Modified
2023-11-08T04:13:44.502438Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Keycloak vulnerable to Plaintext Storage of User Password
Details

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.

Impact

Passwords for self-registered users are stored as cleartext attributes associated with the user.

Mitigation

Disable self-registration for users in all realms until patched.

References

Affected packages

Maven / org.keycloak:keycloak-core

Package

Name
org.keycloak:keycloak-core
View open source insights on deps.dev
Purl
pkg:maven/org.keycloak/keycloak-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
22.0.2
Fixed
22.0.3

Affected versions

22.*

22.0.2