CVE-2024-4704

Contact Form 7 <= 5.9.4 - Unauthenticated Open Redirect

2024-06-05 00:00
William Bastos

Strategic Overview

Status
Patched in 5.9.5
Affected Plugin
Contact Form 7
Affected Version
<= 5.9.4
CVSS
6.1Medium
Weakness type
CWE-601 · URL Redirection to Untrusted Site ('Open Redirect')
CVE
CVE-2024-4704
View all Contact Form 7 vulnerabilities

At a glance

CVE-2024-4704 is a medium-severity URL Redirection to Untrusted Site ('Open Redirect') vulnerability in the Contact Form 7 WordPress plugin, affecting versions <= 5.9.4. It carries a CVSS score of 6.1 (reachable over the network; low attack complexity). Exploitation requires no authentication. The issue is fixed in version 5.9.5; sites on affected versions should update now. Disclosed June 2024, reported by William Bastos.

Vulnerability Overview

The Contact Form 7 plugin for WordPress is vulnerable to Open Redirect in all versions up to, and including, 5.9.4. This is due to insufficient validation on the redirect url supplied via accessing the contact form with a spoofed page. This makes it possible for unauthenticated attackers to redirect site users to potentially malicious sites if they can successfully trick them into performing an action.

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.

CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Reaching this weakness in Contact Form 7 <= 5.9.4 takes no account at all. An open redirect is a page that takes a destination from the request and sends the browser there without checking that the destination belongs to the site.

A link that starts on a trusted domain finishes on an attacker's, which is what makes phishing and consent-screen abuse credible to the person clicking it. For Contact Form 7 the fix is 5.9.5: builds <= 5.9.4 are affected, anything from 5.9.5 onward is not.

Remediation

Update to version 5.9.5, or a newer patched version

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. None of that substitutes for the fix: Contact Form 7 5.9.5 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Login Security
  • Alerts

External References

Related records

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