CVE-2023-36505

Ninja Forms <= 3.6.24 - Authenticated (Admin+) Arbitrary File Deletion

2023-06-22 00:00
Theodoros Malachias

Strategic Overview

Status
Patched in 3.6.25
Affected Version
<= 3.6.24
CVSS
6.5Medium
Weakness type
CWE-73 · External Control of File Name or Path
CVE
CVE-2023-36505
View all Ninja Forms – The Contact Form Builder That Grows With You vulnerabilities

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

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C