CVE-2024-5021

WordPress Picture / Portfolio / Media Gallery <= 3.0.1 - Unauthenticated Server-Side Request Forgery

2024-06-18 14:30
Francesco Carlucci

Strategic Overview

Status
Unpatched
Affected Version
<= 3.0.1
CVSS
9.3Critical
Weakness type
CWE-918 · Server-Side Request Forgery (SSRF)
CVE
CVE-2024-5021
View all WordPress Picture / Portfolio / Media Gallery vulnerabilities

At a glance

CVE-2024-5021 is a critical-severity Server-Side Request Forgery (SSRF) vulnerability in the WordPress Picture / Portfolio / Media Gallery WordPress plugin, affecting versions <= 3.0.1. It carries a CVSS score of 9.3 (reachable over the network; low attack complexity; high confidentiality impact). Exploitation requires no authentication. No fixed release has been reported yet; treat installations running this software as exposed. Disclosed June 2024, reported by Francesco Carlucci.

Vulnerability Overview

The WordPress Picture / Portfolio / Media Gallery plugin for WordPress is vulnerable to Server-Side Request Forgery in all versions up to, and including, 3.0.1 via the 'file_get_contents' function. This makes it possible for unauthenticated attackers to make web requests to arbitrary locations originating from the web application and can be used to query and modify information from internal services.

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. A successful exploit has high impact on confidentiality.

CWE-918: Server-Side Request Forgery (SSRF)

WordPress Picture / Portfolio / Media Gallery <= 3.0.1 carries this weakness at file_get_contents, and reaching it takes no account at all. Server-side request forgery means the application fetches a URL supplied by the caller, turning the server into a proxy for requests the attacker could not make directly.

The request originates from inside the hosting network, which is how these flaws reach cloud metadata endpoints, internal admin panels and services that trust local traffic. No fixed build of this plugin is recorded for WordPress Picture / Portfolio / Media Gallery yet, so installs running <= 3.0.1 stay exposed until the vendor ships one.

Remediation

No known patch available. Please review the vulnerability's details in depth and employ mitigations based on your organization's risk tolerance. It may be best to uninstall the affected software and find a replacement.

How does WordSec protect against this?

Requests carrying this pattern arrive without a session, so nothing upstream of the firewall gets a chance to reject them: WordSec's web application firewall inspects request payloads before WordPress loads them. No patched version is recorded yet, which is the case where a filtering layer matters most, because there is nothing to update to.

  • Firewall
  • Login Security
  • Alerts

External References

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