Skip to main content
Vulnerability Database/CVE-2024-13758

CVE-2024-13758: CP Contact Form with PayPal CSRF Vulnerability

CVE-2024-13758 is a Cross-Site Request Forgery flaw in CP Contact Form with PayPal plugin for WordPress that allows attackers to add discount codes through forged requests. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-13758 Overview

CVE-2024-13758 is a Cross-Site Request Forgery (CSRF) vulnerability in the CP Contact Form with PayPal plugin for WordPress. All versions up to and including 1.3.52 are affected. The flaw stems from missing or incorrect nonce validation in the cp_contact_form_paypal_check_init_actions() function. Unauthenticated attackers can add discount codes by tricking a site administrator into clicking a crafted link. The weakness is classified under CWE-352: Cross-Site Request Forgery.

Critical Impact

Attackers can inject attacker-controlled discount codes into PayPal contact forms by abusing administrator sessions through forged requests, enabling payment manipulation and potential revenue loss.

Affected Products

  • dwbooster CP Contact Form with PayPal plugin for WordPress
  • All versions up to and including 1.3.52
  • WordPress sites running the vulnerable plugin with administrator access

Discovery Timeline

  • 2025-01-30 - CVE-2024-13758 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-13758

Vulnerability Analysis

The vulnerability resides in the cp_contact_form_paypal_check_init_actions() function of the CP Contact Form with PayPal plugin. The function processes administrative actions without verifying a valid WordPress nonce token. This allows an attacker to craft an HTML form or URL that triggers privileged plugin actions when loaded by an authenticated administrator.

Exploitation requires user interaction: the targeted administrator must visit an attacker-controlled page or click a malicious link while logged into the WordPress site. Successful exploitation lets the attacker add discount codes to the PayPal-integrated contact form, which can be used to reduce payment amounts or bypass pricing controls.

The fix was committed in WordPress Plugin Change Set 3230873, which introduces proper nonce validation on sensitive administrative actions.

Root Cause

The root cause is the absence of a wp_verify_nonce() or equivalent token check inside cp_contact_form_paypal_check_init_actions(). WordPress provides a nonce framework specifically to defend against CSRF, but the plugin did not integrate it on this handler. See the vulnerable implementation referenced in the WordPress Plugin Function Code.

Attack Vector

The attack vector is network-based and requires administrator interaction. An attacker hosts a page containing a hidden form or image tag that issues a request to the vulnerable endpoint on the target WordPress site. When an authenticated administrator loads the page, the browser sends the request with valid session cookies. The plugin executes the action because it does not validate request authenticity.

For technical details on the exploitation chain, refer to the Wordfence Vulnerability Report.

Detection Methods for CVE-2024-13758

Indicators of Compromise

  • Unexpected discount codes appearing in the CP Contact Form with PayPal configuration
  • WordPress access logs showing POST requests to plugin admin endpoints with external Referer headers
  • Administrator sessions executing plugin actions shortly after visiting unfamiliar URLs

Detection Strategies

  • Inventory WordPress installations and flag any running CP Contact Form with PayPal 1.3.52 or earlier
  • Review plugin configuration history for unauthorized changes to discount codes or payment parameters
  • Correlate web server logs with WordPress audit logs to identify requests lacking a valid nonce parameter

Monitoring Recommendations

  • Enable a WordPress security plugin or Web Application Firewall (WAF) to log and alert on CSRF attempts
  • Monitor administrator user activity for anomalous plugin configuration changes
  • Track outbound referrers in access logs to identify traffic originating from suspicious third-party pages

How to Mitigate CVE-2024-13758

Immediate Actions Required

  • Update the CP Contact Form with PayPal plugin to a version newer than 1.3.52 that includes the fix from changeset 3230873
  • Audit existing discount codes within the plugin and remove any entries that were not authorized
  • Require administrators to log out of WordPress when not actively managing the site

Patch Information

The vendor addressed the vulnerability in the commit referenced by WordPress Plugin Change Set 3230873. Site administrators should install the latest version available from the WordPress Plugin Developers Page. Verify the plugin version in the WordPress admin dashboard after updating.

Workarounds

  • Deactivate the CP Contact Form with PayPal plugin until the patched version is installed
  • Deploy a WAF rule that enforces nonce or Referer checks on plugin admin endpoints
  • Restrict administrator access using IP allowlists or VPN requirements to reduce exposure to CSRF payloads
bash
# Verify installed plugin version via WP-CLI
wp plugin get cp-contact-form-with-paypal --field=version

# Update to the latest patched release
wp plugin update cp-contact-form-with-paypal

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.