CVE-2024-0380

WP Recipe Maker <= 9.1.0 - Directory Traversal

2024-01-17 00:00
wesley (wcraft)

Strategic Overview

Status
Patched in 9.1.1
Affected Plugin
WP Recipe Maker
Affected Version
<= 9.1.0
CVSS
5.4Medium
Weakness type
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE
CVE-2024-0380
View all WP Recipe Maker vulnerabilities

At a glance

CVE-2024-0380 is a medium-severity Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in the WP Recipe Maker WordPress plugin, affecting versions <= 9.1.0. It carries a CVSS score of 5.4 (reachable over the network; low attack complexity). The issue is fixed in version 9.1.1; sites on affected versions should update now. Disclosed January 2024, reported by wesley (wcraft).

Vulnerability Overview

The WP Recipe Maker plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 9.1.0 via the 'icon' attribute used in Shortcodes. This makes it possible for authenticated attackers, with contributor-level access and above, to include the contents of SVG files on the server, which can be leveraged for Cross-Site Scripting.

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 interaction from a victim user.

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

WP Recipe Maker <= 9.1.0 carries this weakness at icon, and reaching it takes a caller who can reach the endpoint. Path traversal happens when user-controlled text is used to build a filesystem path without being constrained to an intended directory, so sequences like ../ walk the resolved path somewhere else.

Depending on the operation, it means reading files outside the intended folder — wp-config.php being the usual target — or writing to and deleting paths the web server can touch. For WP Recipe Maker the fix is 9.1.1: builds <= 9.1.0 are affected, anything from 9.1.1 onward is not.

Remediation

Update to version 9.1.1, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to WP Recipe Maker: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: WP Recipe Maker 9.1.1 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Alerts

External References

Related records

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