Live Helper Chat: XSS via javascript: URL in the Operator Visitor List

An anonymous visitor reports a javascript: URL as the current page through chat/logpageview; one click in the visitor profile runs the script in the operator session.

Advisory ID: TP-2026-150
Product: Live Helper Chat (open-source live support chat application for websites)
Vulnerability type: Stored cross-site scripting (CWE-79)
CVE: not requested
CVSS 3.1: 6.1 (Medium) · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Vendor advisory: GHSA-8r7c-6p3q-rwgr
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. The endpoint chat/logpageview is declared without a permission entry and accepts the current page (l) and the referrer (r) of a visitor anonymously. The visitor profile in the operator area places the page in the href of an anchor without target and uses the referrer as the link text. The output passes through htmlspecialchars, but there is no scheme allowlist, so javascript: survives. An anonymous visitor plants a link with an ordinary looking label, and one click runs script in the application origin with the session of the operator who clicked.

Root cause

lhc_web/modules/lhchat/module.php:615-619 declares $ViewList['logpageview'] without a functions entry, so the dispatcher applies no permission check.
lhc_web/lib/models/lhchat/erlhcoreclassmodelchatonlineuser.php:1117 reads l from $_POST or $_GET and erlhcoreclassmodelchatonlineuser.php:1120 stores the value in current_page without checking the scheme, while erlhcoreclassmodelchatonlineuser.php:944 takes the r parameter as referrer.
lhc_web/design/defaulttheme/tpl/lhchat/getonlineuserinfo.tpl.php:6 prints current_page through htmlspecialchars into the href of an anchor without a target attribute and referrer as its text.
The missing check exists elsewhere in the product: lhc_web/modules/lhcobrowse/proxycss.php:67 accepts only the schemes http and https.
track_online_visitors is enabled by default (lhc_web/modules/lhinstall/install.php:1566), and the victim needs only lhchat/use and lhchat/use_onlineusers, which the installer grants the Operators role.

Proof of Concept

GET /index.php/eng/chat/logpageview/(vid)/<visitor-id>
    ?l=javascript:fetch("/index.php/site_admin/user/userlist")
       .then(r=>r.text()).then(t=>{document.title="PWNED-"+t.length})
    &r=https%3A%2F%2Fexample.com%2Fblog

HTTP/1.1 200 OK

<a href="javascript:fetch(&quot;/index.php/site_admin/user/userlist&quot;)..."
   class="no-wrap fs12">https://example.com/blog</a>

The request needs no cookie and no CSRF token. Verified on 4.94v (commit d8787d04) in Docker with the default configuration and Chromium: the operator opens the visitor profile and clicks the link, the script runs in the application origin and sets the page title to PWNED-<n>. For an administrator n is 90867, the length of the full user list. An HTML break-out attempt with "> is escaped and inert, as the control.

Impact

  • Script execution in the application origin with the session of the user who clicks, after one click.
  • The link text is chosen by the attacker, so the entry looks like an ordinary referrer URL.
  • The entry is planted without an account, a cookie or a CSRF token.
  • Against an administrator the script read the full user list; against the stock Operators role the same request returns the permission error page.

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.