User enumeration through response timing on the forgot password endpoint
Observable timing discrepancy in the forgot password REST endpoint (POST /api/v1/forgotpassword) in dotCMS versions before 26.11.06-03 allows an anonymous attacker to determine whether an account exists. The endpoint returned the same status and body for existing and unknown accounts, but the account lookup, reset token write and email delivery ran on the request thread only for existing accounts, so requests for a valid account took measurably longer. An attacker can use repeated timed requests to confirm valid accounts and then target them with phishing or credential attacks. Only account existence is disclosed. Fixed in 26.11.06-03 and later. The endpoint now validates the input and returns the same response immediately for every value; the account-dependent work runs on a bounded background pool, so response times no longer depend on whether the account exists.