
Bilingual analysis and safe local PoC for CVE-2026-110025, an unauthenticated unrestricted file upload in phpwcms leading to RCE, with source-level detection and loopback validation.
English | Português do Brasil
Educational proof of concept and technical analysis for an unauthenticated unrestricted file upload in phpwcms. On a server that executes .phtml as PHP, the flaw becomes remote code execution. Discovered and responsibly disclosed by Fernando Viana (capivara-research).
| Item | Detail |
|---|---|
| Vulnerability | Unrestricted upload / remote code execution |
| Weakness | CWE-434, CWE-284 |
| Component | Public Form content part (cnt23) |
| Authentication | None |
| User interaction | None |
| Affected | 1.9.0–1.9.49; 1.10.0–1.12.3; affected 2.x development code |
| Fixed | 1.9.50; 1.12.4; patched 2.x development branch |
| GitHub severity | Critical, CVSS 3.1 9.8 |
| VulDB metrics | CVSS 3.1 7.3; CVSS 4.0 6.9 |
The different scores are publisher assessments, not different vulnerabilities. Exploitability depends on the form configuration and server-side handler mapping described below.
The CVE Program record is PUBLISHED and identifies VulDB as the assigning CNA.
| CVE field | Published value |
|---|---|
| CNA title | slackero phpwcms Extension Check cnt23.article.inc.php unrestricted upload |
| Reserved | 2026-10-13 15:10:51 UTC |
| Published | 2026-10-13 15:41:34 UTC |
| CPE | cpe:2.3:a:phpwcms:phpwcms:*:*:*:*:*:*:*:* |
| CVSS 4.0 | 6.9 Medium — CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X |
| CVSS 3.1 | 7.3 High — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C |
Use the CVE Program record for the human-readable entry and the canonical CVE JSON 5.2 record for machine-readable data. The CNA record lists 1.9.0–1.9.49 and 1.12.0–1.12.3 individually; the broader 1.10.0–1.12.3 range shown above comes from the upstream GHSA.
The public Form content part used an extension denylist. In 1.12.3 its default value blocked .php but omitted .phtml. The original extension survived in the stored filename, and uploads went to the web-accessible content/form/ directory. The distributed .htaccess blocked only *.php.
The complete RCE chain requires:
.phtml;content/form); and.phtml to PHP, as Debian's tested Apache PHP configuration did.unauthenticated multipart upload
-> denylist accepts .phtml
-> timestamp + sanitized original name
-> file stored below content/form/
-> Apache maps .phtml to PHP
-> benign PHP marker executes
The vulnerable processor is include/inc_front/content/cnt23.article.inc.php. Its default denylist omitted several server-dependent executable extensions:
$cnt_form['upload_value']['exclude'] =
'php,asp,php3,php4,php5,aspx,cfm,js,exe,com,bat,app,sh,jar,java';
The application then retained the supplied extension:
$cnt_form['upload_value']['filename'] =
time().'_'.sanitize_filename($_FILES[$POST_name]['name']);
Meanwhile, the old content/form/.htaccess denied only *.php. These controls disagreed with Apache configurations that treat .phtml as PHP.
Use only an isolated, disposable environment you own. The included payload prints a constant marker and PHP version; it has no command parameter, reads no secret, and creates no outbound connection.
Against extracted phpwcms trees:
php poc/source-check.php /path/to/phpwcms-1.12.3
php poc/source-check.php /path/to/phpwcms-1.12.4
Expected 1.12.3 result (exit 1):
[FAIL] mandatory phtml denylist
[FAIL] server-side MIME inspection
[FAIL] PHP opening-tag inspection
[FAIL] web-server phtml block
[VULNERABLE PATTERN] One or more upstream protections are absent.
Expected 1.12.4 result (exit 0): all four checks are [PASS], followed by [PATCHED PATTERN].
The Docker runner pins the upstream version and performs the same source-level comparison:
docker build --build-arg PHPWCMS_VERSION=1.12.3 -t cve-2026-110025:vulnerable .
docker run --rm cve-2026-110025:vulnerable
docker build --build-arg PHPWCMS_VERSION=1.12.4 -t cve-2026-110025:patched .
docker run --rm cve-2026-110025:patched
Prepare a local phpwcms 1.12.3 installation with a public Form content part and an upload field. Then provide the form URL and local upload directory:
./poc/reproduce-local.sh \
http://127.0.0.1:8098/ \
/tmp/phpwcms-lab/content/form
The runner dynamically preserves hidden fields, first confirms the .php negative control, uploads .phtml, identifies phpwcms's timestamped filename, and requests it. It refuses every target except 127.0.0.1 and localhost.
The exact previously observed output is retained in evidence/validated-results.md. It is historical evidence, not output synthesized by this repository.
poc/proof.phtml in the upload field.filename="proof.phtml", and the payload bytes.content/form/ locally.PHPWCMS_PHTML_RCE_PROOF_.poc/negative.php; it must not be stored. Repeat on 1.12.4; neither executable upload should be accepted.This workflow separates upload acceptance, filesystem persistence, web reachability, and PHP execution instead of treating one HTTP response as proof of the whole chain.
Release 1.12.4 implements defense in depth:
phtml, pht, phar, phps, PHP variants, scripts, executables, and sensitive files;fileinfo checks uploaded MIME types;content/form/.htaccess denies executable extensions for Apache 2.4 and 2.2 compatibility;nosniff is set.The upload directory remains under the web root, so every layer still matters. Extension filtering alone is not a universal file-upload design.
Upgrade to 1.12.4 (or 1.9.50 on the legacy line) or a later supported release. If upgrading cannot be immediate, remove public upload fields and deny all script execution in content/form/ at the web-server layer. An explicit allowlist limited to business-required formats is an additional mitigation, not a substitute for the patch.
Defenders should review content/form/ and access logs for executable suffixes, especially .phtml, .pht, .phar, .phps, and PHP-number variants. Preserve timestamps and hashes before removal, and rotate secrets if execution may have occurred.