Skip to main content

CVE-2024-9635: Cash App WooCommerce Plugin XSS Vulnerability

CVE-2024-9635 is a reflected cross-site scripting flaw in the Checkout with Cash App on WooCommerce plugin that allows attackers to inject malicious scripts. This post explains its impact, affected versions, and mitigation steps.

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-9635 Overview

The Checkout with Cash App on WooCommerce plugin for WordPress contains a Reflected Cross-Site Scripting (XSS) vulnerability [CWE-79]. The flaw affects all plugin versions up to and including 6.0.2. It exists in the _wp_http_referer parameter across several files due to insufficient input sanitization and output escaping. Unauthenticated attackers can inject arbitrary web scripts that execute when a targeted user clicks a crafted link. Successful exploitation runs attacker-controlled JavaScript in the victim's browser session within the WordPress site context.

Critical Impact

Unauthenticated attackers can execute arbitrary JavaScript in a victim's browser via a crafted link, enabling session theft, administrative action hijacking, and further compromise of WooCommerce stores.

Affected Products

  • Checkout with Cash App on WooCommerce plugin for WordPress — all versions up to and including 6.0.2
  • WordPress sites running WooCommerce with the vulnerable plugin installed
  • Administrative and customer sessions accessible via authenticated WordPress users

Discovery Timeline

  • 2024-11-23 - CVE-2024-9635 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in the NVD database

Technical Details for CVE-2024-9635

Vulnerability Analysis

The vulnerability is a Reflected Cross-Site Scripting flaw in the _wp_http_referer request parameter. The plugin reads this parameter and reflects it into HTML responses without applying adequate sanitization or output escaping. When an attacker-supplied string containing JavaScript is echoed back to the page, the browser parses and executes it in the origin of the WordPress site.

Because the vulnerable code paths are reachable without authentication, an attacker only needs to deliver a crafted URL to a logged-in administrator or customer. The injected script runs with the privileges of the victim's session, allowing cookie theft, forced administrative actions, or pivoting to other administrative endpoints on the site.

Root Cause

The root cause is missing input validation and output encoding on the _wp_http_referer parameter in the plugin's PHP source. Referenced code paths include includes/class-wc_cashapp_square.php at lines 66, 128, and 153 as documented in the WordPress plugin trac. The plugin does not apply esc_url(), esc_attr(), or wp_kses() before rendering the parameter into HTML attributes.

Attack Vector

The attack requires network access and user interaction. An attacker crafts a URL to a vulnerable endpoint on the target WordPress site with a malicious payload inside _wp_http_referer. The attacker delivers the link via phishing email, forum post, or malicious advertisement. When the victim clicks the link while authenticated, the reflected payload executes in the victim's browser. Details of the fix are documented in the WordPress plugin changeset and in the Wordfence Vulnerability Report.

// No verified exploit code is published for this CVE.
// The vulnerability is triggered by supplying script content
// in the `_wp_http_referer` query parameter to a vulnerable endpoint.

Detection Methods for CVE-2024-9635

Indicators of Compromise

  • HTTP requests to WooCommerce or Cash App plugin endpoints containing _wp_http_referer values with <script>, javascript:, onerror=, or encoded script fragments.
  • Referrer strings in web server logs containing URL-encoded angle brackets (%3C, %3E) or event handler names.
  • Unexpected outbound requests from administrator browsers to attacker-controlled domains shortly after clicking a link.
  • Creation of new administrative WordPress users or modification of plugin settings without a corresponding legitimate admin session.

Detection Strategies

  • Inspect access logs for _wp_http_referer parameter values that fail URL or HTML validation heuristics.
  • Deploy a web application firewall (WAF) rule that blocks reflected script payloads in query strings targeting /wp-admin/ and WooCommerce endpoints.
  • Monitor plugin file integrity for class-wc_cashapp_square.php and confirm the installed plugin version is above 6.0.2.
  • Correlate suspicious inbound URLs with subsequent WordPress admin actions using centralized log analysis.

Monitoring Recommendations

  • Forward WordPress access logs, WAF logs, and PHP error logs to a centralized SIEM for retention and query.
  • Alert on anomalous administrator behavior such as new user creation, role changes, or plugin modifications following a click on an external link.
  • Track outbound network connections from workstations used for WordPress administration to identify data exfiltration attempts.

How to Mitigate CVE-2024-9635

Immediate Actions Required

  • Update the Checkout with Cash App on WooCommerce plugin to a version later than 6.0.2 that includes the fix referenced in the plugin changeset.
  • If an updated version is unavailable, deactivate and remove the plugin from all affected WordPress installations.
  • Force password resets and session invalidation for administrative users who may have clicked untrusted links.
  • Review WordPress audit logs for unauthorized administrative changes since the plugin was installed.

Patch Information

The vendor addressed the issue in a release after 6.0.2. Site owners should apply the latest plugin update from the WordPress plugin repository. Confirm the installed plugin version through the WordPress admin plugin list or by inspecting the plugin header in wc-cashapp.php. Verify the patched code paths in includes/class-wc_cashapp_square.php no longer reflect the _wp_http_referer parameter without escaping.

Workarounds

  • Deploy a WAF rule to strip or reject _wp_http_referer values containing <, >, or javascript: on plugin endpoints.
  • Restrict WordPress administrative access to trusted IP ranges via web server or firewall rules.
  • Enforce Content Security Policy (CSP) headers that disallow inline scripts to reduce the impact of reflected XSS.
  • Train administrators to avoid clicking unsolicited links pointing to their own WordPress site while authenticated.
bash
# Example nginx rule to block script-like content in _wp_http_referer
if ($args ~* "_wp_http_referer=[^&]*(<|%3C|javascript:)") {
    return 403;
}

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.