Mega Forms <= 1.7.9 - Unauthenticated Arbitrary File Deletion via Submitted Field Value
alikhallad Mega Forms – Drag & Drop Form Builder with Multi-Step & Conditional Logic
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| alikhallad Mega Forms – Drag & Drop Form Builder with Multi-Step & Conditional Logic |
| No fix yet |
Original description
The Mega Forms – Drag & Drop Form Builder with Multi-Step & Conditional Logic plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_entry function in all versions up to, and including, 1.7.9 This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). The attacker-supplied path is stored via the unauthenticated form submission endpoint, but the actual file deletion only occurs when an administrator subsequently deletes the stored entry — a routine housekeeping action that serves as the detonation trigger. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
From the CVE record · Wordfence