Vulnerability Summary
-
CVE ID: CVE-2023-6140
-
Severity: High (CVSS 3.1 Score: 8.8)
-
Attack Vector: Network
-
Privileges Required: Low (Subscriber+)
-
User Interaction: None
-
Impact: Remote Code Execution (RCE)
Affected Products
Product | Affected Versions |
---|---|
Essential Real Estate WordPress Plugin | Versions ≤ 4.3.5 |
How the Exploit Works
The Essential Real Estate plugin for WordPress fails to adequately validate file types during the font upload process. This oversight allows authenticated users with subscriber-level permissions or higher to upload arbitrary files, including PHP scripts disguised as ZIP archives. Once uploaded, these malicious files can be executed on the server, leading to remote code execution.WPScan+4Wordfence+4VulDB+4NVD+3Feedly+3WPScan+3
The vulnerability resides in the gsf_upload_fonts
AJAX action, which lacks proper checks to prevent the upload of dangerous file types. An attacker can exploit this by crafting a ZIP archive containing a malicious PHP file and uploading it through the vulnerable endpoint.
No phone number, email, or personal info required.
Conceptual Example Code
An attacker might use the following Python script to exploit the vulnerability:
This script logs into the WordPress site using subscriber credentials, retrieves the necessary nonce, creates a malicious ZIP file containing a PHP shell, and uploads it via the vulnerable AJAX action.WPScan
Potential Risks
-
Execution of arbitrary PHP code on the server
-
Full compromise of the WordPress siteFeedly
-
Unauthorized access to sensitive data
-
Defacement or disruption of website functionality
Mitigation Recommendations
-
Update the Plugin: Upgrade to Essential Real Estate version 4.4.0 or later, which addresses this vulnerability.NVD+2WPScan+2Wordfence+2
-
Restrict File Uploads: Implement server-side checks to validate file types and restrict uploads to necessary formats only.Wordfence
-
Limit User Permissions: Ensure that users have the minimum necessary permissions to perform their roles.
-
Monitor Server Activity: Regularly review server logs for suspicious activities, such as unexpected file uploads or executions.
Conclusion
CVE-2023-6140 is a critical vulnerability in the Essential Real Estate WordPress plugin that allows authenticated users with minimal permissions to upload and execute arbitrary PHP files, leading to potential full site compromise. Administrators should promptly update the plugin and implement the recommended security measures to protect their websites.Feedly+1NVD+1NVD
References