🔐 Security release: harden BBCode [html] handling, enforce department/permission checks, and restrict offline messages
- 🛡️ Harden
[html]and[html_snippet]BBCode handling: adderLhcoreClassChatValidator::stripHtmlBBCode()andhasHtmlBBCode()to strip HTML BBCode from visitor-supplied fields/messages, offline requests, and group chat invites, enforcelhchat/htmlbbcodeenabledacross operator/API/XML/bot/command/webhook message paths, and escape/render[html]safely withhtml_as_textinerLhcoreClassBBCode,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 inchat/start,widgetrestapi/settings,widgetrestapi/onlinesettings, andwidgetrestapi/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 inchat/startchatwithoperator,groupchat/startchatwithoperator,groupchat/inviteoperator, andrestapi/startchatwithoperator
Full Changelog: 5.03v...5.04v