Skip to content

5.04v Security release

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 14:50
· 2 commits to master since this release

🔐 Security release: harden BBCode [html] handling, enforce department/permission checks, and restrict offline messages

  • 🛡️ Harden [html] and [html_snippet] BBCode handling: add erLhcoreClassChatValidator::stripHtmlBBCode() and hasHtmlBBCode() to strip HTML BBCode from visitor-supplied fields/messages, offline requests, and group chat invites, enforce lhchat/htmlbbcodeenabled across operator/API/XML/bot/command/webhook message paths, and escape/render [html] safely with html_as_text in erLhcoreClassBBCode, erLhcoreClassBBCodePlain, and chat templates
  • 🔐 Enforce read/write permission and department limitation checks across chat/getnotificationsdata, front/tabs, cannedmsg/filter, file/chatfileslist, survey/choosesurvey, chatarchive/listarchivechats, chatarchive/viewarchivedchat, xml/accepttransferbychat, and mail endpoints (mailconv/view, mailconv/single, mailconv/transfermail, mailconv/blocksender, mailconv/apiunmerge, mailconv/inlinedownloadmodal)
  • 🚫 Enforce force_leave_a_message / offline message restrictions in chat/start, widgetrestapi/settings, widgetrestapi/onlinesettings, and widgetrestapi/submitoffline (including product-resolved departments) so offline submissions are rejected when disabled
  • 📱 Harden mobile session management (mobile/editsession, mobile/deletesession) with CSRF token validation and session existence checks, and validate target operator existence in chat/startchatwithoperator, groupchat/startchatwithoperator, groupchat/inviteoperator, and restapi/startchatwithoperator

Full Changelog: 5.03v...5.04v