Content lock-check endpoints expose the lock holder's account details
Exposure of sensitive information in the content lock-check endpoints (PUT /api/content/canLock and GET /api/v1/content/_canlock) in dotCMS versions before 26.10.23-02, and 25.07.10 LTS before v23, allows anyone who can read a piece of content, including anonymous visitors under the default configuration, to obtain the full account record of the user who holds the lock on that content, including the email address, password hash and pending password reset data. When a privileged user such as an administrator has publicly readable content locked, an unauthenticated attacker can take over that account. A related flaw in the forgot-password endpoint (POST /api/v1/forgotpassword) disclosed user email addresses and confirmed which user IDs exist when login by user ID is enabled. Fixed in 26.10.23-02 and later: the lock-check endpoints return only the lock owner's display name, and only to back-end users, and the forgot-password endpoint gives the same response to every valid request.