CVE-2026-132780: Refused Login As attempts recorded as successful in the security log
Improper logging in the Login As REST endpoint (POST /api/v1/users/loginas, UserResource) in dotCMS versions before 26.11.18-01 causes several refused Login As requests, such as a request with no target user, a request to log in as oneself, or a request with a missing or wrong password for an administrator target, to write a security-log entry stating that the caller successfully logged in as the target user, directly after the error entry for the same request. A back-end user who holds the Login As role can use this to fill the security log with false impersonation records, which can mislead monitoring and incident response. In addition, a refused Login As request sent while the user is already impersonating another user cleared the stored original identity, so Logout As no longer worked and the session had to be ended. No privileges are gained: the session identity does not change on a refused request.
Fixed in 26.11.18-01 and later. The success entry is now written only after a Login As completes, every refusal returns before it, and a refused or failed request restores the session state it found, so an active Login As can still be ended with Logout As.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 26.11.18-01 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10
Event History
Frequently Asked Questions
Who can create the misleading security-log records?
A back-end user who holds the Login As role can generate them. The issue does not grant additional privileges or change the session identity when a Login As request is refused.
How can responders distinguish a false successful impersonation record from a real one?
Affected requests produce an error entry followed directly by a security-log entry claiming the caller successfully logged in as the target user. This can occur for requests with no target user, an attempt to log in as oneself, or an administrator target with a missing or incorrect password.
What operational impact can a refused request have on an existing impersonation session?
If the caller is already impersonating another user, a refused Login As request can clear the stored original identity. Logout As will then no longer work, and ending the session is required.
Which versions address the issue?
dotCMS 26.11.18-01 and later write the success log entry only after Login As completes. They also restore the prior session state when a Login As request is refused or fails.