CVE-2023-4596
WordPress vulnerability analysis and mitigation

Overview

The Forminator WordPress plugin (versions up to 1.24.6) contains an unauthenticated arbitrary file upload vulnerability (CVE-2023-4596). The vulnerability was discovered in August 2023 and affects over 400,000 active installations. The issue exists in the uploadpostimage() function where file type validation occurs after the file has been uploaded to the server (Patchstack, WPScan).

Technical details

The vulnerability exists in the uploadpostimage function where there is no validation of files before they are written to the server. The function can be accessed if the site has a Forminator form with the "Create Post" template that allows unauthenticated users to create posts. The critical issue is that the wpcheckfiletype function to validate file types is only called after the file has already been uploaded using fileputcontents (Patchstack). The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

This vulnerability allows unauthenticated attackers to upload arbitrary files to the affected site's server, which could lead to remote code execution. Since the file type validation occurs after the upload, attackers can upload malicious PHP files or other harmful content to compromise the website (Patchstack).

Mitigation and workarounds

The vulnerability was patched in Forminator version 1.25.0. Site administrators are strongly advised to update to this version or later. The patch involves moving the fileputcontents function to execute after proper file type validation has been performed (Patchstack).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management