Repository navigation
Security release for the 1.12 line.
🔒 Security
- Inline JavaScript in the article list (GHSA-2gqr-8gmv-2vg4): an article or content-part title, subtitle or comment saved by a backend user below administrator ran script in an administrator's session when the structure list was opened, a row was hovered or a delete action was confirmed. Values reached the inline handlers through
js_singlequote(), which only HTML-encodes the quote, and the HTML parser decodes that entity before the handler runs.js_string()now escapes at JavaScript level and</>as\x3C/\x3E,js_inline_string()adds the attribute layer, andjs_tooltip_string()keepsTip()content as text (the tooltip assigns withinnerHTML). Every call site was converted, not only the article list. - Profile update SQL injection (GHSA-75qh-mj95-rhq3): the UPDATE identifies the row by session user id, the raw session login no longer reaches the predicate.
- Article-body download traversal (GHSA-4f4g-cxrq-vff5): a stored
[download]selector is resolved throughphpwcms_template_file_path()and cannot leavetemplate/inc_cntpart/filelist. - Stored XSS through RSS imports (GHSA-6rq2-q6p6-m79v): article summaries and CP14 HTML pass HTMLPurifier before storage and fall back to plain text.
- Stored XSS in global chat (GHSA-gv2c-9fm8-4v2q): the author name is HTML-escaped in the chat list.
include/inc_ext/htmlfilter.php is retired; phpwcms_purify_html() replaces it in include_url() and getCleanSubString(), with the purifier cache in content/tmp/htmlpurifier.
Upgrade
Replace the files. No database revision is added by this release, so no migration runs. See CHANGELOG.md for the complete list.
Incremental update
phpwcms-1.12.10-changes-from-1.12.9.zip contains every file that changed since the previous release, taken from this tag, plus DELETE-THESE.txt listing removed files. Extract over the installation to apply this release without replacing unchanged files. On the v2 line the built-in updater still expects a full release package with a complete .update-manifest; this archive is for manual incremental updates.