Repository navigation
phpwcms v2.0.0-beta.8
Pre-releaseSecurity release for the 2.0 beta line.
🔒 Security
- Stored script in the article structure list (GHSA-2gqr-8gmv-2vg4): an article or content-part title saved by a backend user below administrator ran script in an administrator's session when a tooltip was shown or a delete action was confirmed. The confirm flow inserted
data-confirmwith.html()and the HTML tooltips ran withsanitize: false.bsConfirm()now escapes the message as text, tooltips and popovers sanitize with an allowList, the HTML tooltips encode every value, andjs_string()/js_inline_string()/js_tooltip_string()cover the remaining handlers.js_singlequote()is deprecated and every call site was converted. - 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.
include/inc_ext/htmlfilter.php is retired; phpwcms_purify_html() replaces it in include_url() and getCleanSubString(). The setup copy of phpwcms_validate_url_host() now lower-cases the host like the frontend one.
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-2.0.0-beta.8-changes-from-2.0.0-beta.7.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.