Live Helper Chat: Password Change Invalidates Neither Session nor Remember-Me Token
A password change ends neither existing sessions nor the lhc_rm_u cookie, which is valid for one year; a cookie stolen beforehand still logs the attacker in as the victim.
Advisory ID: TP-2026-151
Product: Live Helper Chat (open-source live support chat application for websites)
Vulnerability type: Insufficient session expiration (CWE-613)
CVE: not requested
CVSS 3.1: 7.4 (High) · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Vendor advisory: GHSA-x2h4-pg9f-mj6x
Affected versions: up to and including 4.94v (verified live: commit d8787d04)
Fixed in: 4.95v
Reported: 10 October 2026
Summary
Live Helper Chat is an open-source live support chat application for websites. A password change there invalidates neither the PHP sessions of the account nor the remember-me cookie lhc_rm_u, which is valid for one year and authenticates without a session. The revocation routine exists and runs on logout, but no password write path calls it. The token contains no password material, so a changed password does not invalidate it arithmetically either. Whoever has captured a session or a remember-me cookie of an account stays logged in after the victim changes the password.
Root cause
logout() deletes the user's rows in lh_users_remember (lhc_web/lib/core/lhuser/lhuser.php:291), but no password write path calls the routine.
The only session action on a password path is setLoggedUser(), which regenerates the id of the request's own session (lhuser.php:215), leaving other sessions and the token untouched.
lhuser.php:597 builds the cookie as a SHA-1 over the user id, the row id, two salts, the client IP and the User-Agent, without any password material.
lhuser.php:598 sets it with a lifetime of 365 days and without HttpOnly, Secure and SameSite.
lhc_web/lib/models/lhuser/erlhcoreclassmodeluser.php:65 writes pswd_updated on every password change, but validateRemember() does not evaluate the field.
Proof of Concept
1. Login with "Remember me":
Set-Cookie: lhc_rm_u=QNbSyDRW...%3A7%3A188ee8f3...; Max-Age=31536000; path=/
2. Password change through the application:
bcrypt hash before $2y$10$vXsq...
bcrypt hash after $2y$10$kbKC...
login with the old password -> rejected
3. Replay of the cookie from step 1, without a session cookie:
GET /index.php/site_admin/user/account HTTP/1.1
Cookie: lhc_rm_u=<value from step 1>
HTTP/1.1 200 OK
<input ... name="Username" value="<victim>">
The cookie captured before the password change keeps authenticating after it, although the old password is already rejected. Verified on 4.94v (commit d8787d04) in Docker with the default configuration and a throwaway operator account. The cookie is bound to the client IP and the User-Agent; with one byte of the hash flipped or a different User-Agent it is rejected, as the control. Logging out through the UI deletes the row in lh_users_remember, so the deletion path works and is only not wired to the password change.
Impact
- A stolen session or remember-me cookie survives the victim's password change; the usual countermeasure does not end the compromise.
- The cookie authenticates on its own for one year, without a PHP session.
- It carries no
HttpOnly, so any script execution in the origin reads it. - Access ends only with an explicit logout, an administrator's forced logout, disabling or deleting the account, or the optional password expiry policy.
References
Is Something Like This in Your Software?
Our team found this vulnerability during its work. Have your applications tested by the same specialists, with a penetration test from turingpoint.
