VYPR
Unrated severityNVD Advisory· Published Aug 3, 2023· Updated Oct 17, 2024

CVE-2023-36212

CVE-2023-36212

Description

File Upload vulnerability in Total CMS v.1.7.4 allows a remote attacker to execute arbitrary code via a crafted PHP file to the edit page function.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected products

2

Patches

Vulnerability mechanics

Root cause

"Missing file-type validation in the Edit Page upload function allows arbitrary PHP file upload."

Attack vector

An authenticated attacker navigates to the "Edit Page" function at `totalapi.php`, scrolls to the downloads area, and uploads a crafted PHP file (e.g., `shell.php` containing `system($_REQUEST['cmd'])`) [ref_id=1]. The CMS accepts the PHP file without validation, storing it in the `cms-data/depot/` directory, where it becomes accessible via a direct HTTP request [ref_id=1]. The attacker then sends commands via the `cmd` parameter to achieve remote code execution [ref_id=1].

Affected code

The vulnerable endpoint is `rw_common/plugins/stacks/total-cms/totalapi.php`, specifically the "Edit Page" function's file upload area for downloads [ref_id=1]. The CMS stores uploaded files under the `cms-data/depot/` directory without restricting file types [ref_id=1].

What the fix does

No patch is provided in the bundle. The advisory does not specify any vendor fix or remediation commit [ref_id=1]. To close the vulnerability, the application should validate uploaded file extensions (e.g., reject `.php`), restrict the upload directory's execution permissions, and/or sanitize file content to prevent arbitrary code execution.

Preconditions

  • authAttacker must have valid authentication credentials for the Total CMS instance
  • configTarget must be running Total CMS version 1.7.4
  • networkAttacker must have network access to the vulnerable totalapi.php endpoint

Reproduction

1. Log in to Total CMS 1.7.4 and navigate to the "Edit Page" button. 2. The vulnerable URL is `http://localhost.com/rw_common/plugins/stacks/total-cms/totalapi.php`. 3. Scroll to the downloads area and upload a PHP file (e.g., `shell.php`) containing `<?php echo "<pre>"; system($_REQUEST['cmd']); echo "</pre>"; ?>`. 4. Access the uploaded shell at `https://localhosts/cms-data/depot/cmssoccerdepot/shell.php?cmd=id` to execute commands [ref_id=1].

Generated on May 26, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

2

News mentions

0

No linked articles in our index yet.