Ninja Forms <= 3.6.24 - Authenticated (Admin+) Arbitrary File Deletion
Strategic Overview
- Status
- Patched in 3.6.25
- Affected Plugin
- Ninja Forms – The Contact Form Builder That Grows With You
- Affected Version
<= 3.6.24- CVSS
- 6.5Medium
- Weakness type
- CWE-73 · External Control of File Name or Path
- CVE
CVE-2023-36505
At a glance
CVE-2023-36505 is a medium-severity External Control of File Name or Path vulnerability in the Ninja Forms WordPress plugin, affecting versions <= 3.6.24. It carries a CVSS score of 6.5 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 3.6.25; sites on affected versions should update now. Disclosed June 2023, reported by Theodoros Malachias.
Vulnerability Overview
The Ninja Forms plugin for WordPress is vulnerable to arbitrary file deletions in versions up to, and including, 3.6.24. This is due to insufficient restriction on the file path that can be supplied during file deletion. This makes it possible for authenticated attackers, with administrative-level access, to delete arbitrary files on the server. One such file that could be targeted is wp-config.php which if deleted can make it possible for an attacker to connect a site to their own database and ultimately achieve remote code execution on the server.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no privileges on the target site, and no interaction from a victim user.
CWE-73: External Control of File Name or Path
The product allows user input to control or influence paths or file names that are used in filesystem operations.
Remediation
Update to version 3.6.25, or a newer patched version
How does WordSec protect against this?
An attacker needs Admin access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: Ninja Forms 3.6.25 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Other vulnerabilities in Ninja Forms – The Contact Form Builder That Grows With You
- 9.8Ninja Forms Contact Form Code Injection
- 9.8CVE-2019-15025: Ninja Forms Contact Form <= 3.3.21.1 SQL Injection
CVE-2019-15025 - 9.8CVE-2016-1209: Ninja Forms Contact Form… Arbitrary File Upload
CVE-2016-1209 - 9.1CVE-2018-20981: Ninja Forms Insufficient Restrictions during Export
CVE-2018-20981 - 8.8Ninja Forms Contact Form CSRF to Field Import and PHP Object Injection
- 8.8CVE-2021-24163: Ninja Forms Contact Form SendWP Plugin Installation
CVE-2021-24163 - 8.8CVE-2020-36174: Ninja Forms Contact Form CSRF to Plugin Installation
CVE-2020-36174 - 8.8Ninja Forms Contact Form <= 2.9.55.1 SQL Injection
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C