Live Helper Chat: Department Assignment for Any Account via user/newdepartment
An operator in the default role assigns any department to itself or to another account through user/newdepartment and then reads and answers the chats of that department.
Advisory ID: TP-2026-152
Product: Live Helper Chat (open-source live support chat application for websites)
Vulnerability type: Missing authorization (CWE-862)
CVE: not requested
CVSS 3.1: 8.1 (High) · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Vendor advisory: GHSA-gxmc-38j6-m839
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; departments limit which chats an operator may read and answer. The endpoint user/newdepartment is gated only by the selfedit right, which the Operators role created by the installer holds. The handler takes the target account from the path, does not compare it with the session user, discards the result of its validator and writes the submitted departments even without a valid CSRF token. An operator in the default role adds itself or another account to every department and then reads and writes in the chats of those departments.
Root cause
lhc_web/modules/lhuser/module.php:49-53 gates newdepartment with selfedit alone and no limitations entry, and selfedit is part of the Operators role the installer creates (lhc_web/modules/lhinstall/install.php:2995, lhc_web/modules/lhinstall/install.php:3001).
lhc_web/modules/lhuser/newdepartment.php:5 loads the target account from the user_id in the path, and no comparison with the session user exists anywhere in the file.
The handler computes the departments the caller may edit in newdepartment.php:113-119 but does not use the result for the write decision.
newdepartment.php:157 calls erLhcoreClassUserValidator::validateDepartmentAssignment(), and newdepartment.php:167 discards the result with $Errors = [];.
newdepartment.php:150-152 only assigns a response array when the CSRF token is missing or wrong and continues without return or exit, so newdepartment.php:169-174 and newdepartment.php:206-215 save the submitted dep_ids.
Proof of Concept
GET /index.php/site_admin/chat/printchatadmin/7 (chat in department 5)
-> You do not have permission to access the current chat
POST /index.php/site_admin/user/newdepartment/<attacker-id>/(editor)/self
dep_ids[]=5
HTTP/1.1 200 OK
Updated
GET /index.php/site_admin/chat/printchatadmin/7
-> SECRET5-MARKER-ABC
The request carries no CSRF token and is written anyway. Verified on 4.94v (commit d8787d04) in Docker with the default configuration, using an account in the stock Operators role that was assigned to department 2 only. Without the (editor)/self suffix and with a foreign id in the path, a different account received department 3: lh_userdep grew from {2,4,1} to {2,4,1,3}. After the assignment chat/addmsgadmin also accepted a message from the attacker in a chat of a previously refused department.
Impact
- Read access to the chat transcripts of every department; the stock Operators role also holds
chat_see_emailandsee_sensitive_information. - Write access in the name of the company in the chats of any department, since the stock role also holds
writeremotechat. - Durable change of the department assignment of other accounts.
- No permission beyond the default role is required; every write leaves a row in
lh_auditsnaming the acting account.
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.
