CVE-2025-23471

7.1 HIGH

📋 TL;DR

This vulnerability in the Andy Chapman ECT Add to Cart Button WordPress plugin allows attackers to perform Cross-Site Request Forgery (CSRF) attacks that lead to Stored Cross-Site Scripting (XSS). Attackers can trick authenticated administrators into executing malicious actions that inject persistent scripts into WordPress sites. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Andy Chapman ECT Add to Cart Button WordPress Plugin
Versions: All versions up to and including 1.4
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the plugin to be installed and activated on a WordPress site. The vulnerability is present in default configurations.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could inject malicious JavaScript that steals administrator credentials, redirects users to malicious sites, or takes full control of the WordPress site when administrators view infected pages.

🟠

Likely Case

Attackers create fake requests that trick logged-in administrators into adding malicious scripts to WordPress pages, potentially compromising user sessions and site integrity.

🟢

If Mitigated

With proper CSRF protections and content security policies, the attack surface is reduced, though the vulnerability still exists in the codebase.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires tricking an authenticated administrator into clicking a malicious link or visiting a compromised page. The CSRF leads to stored XSS payload injection.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 1.4 (check plugin repository for latest)

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/ect-add-to-cart-button/vulnerability/wordpress-ect-add-to-cart-button-plugin-1-4-csrf-to-stored-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'ECT Add to Cart Button'. 4. Click 'Update Now' if available. 5. If no update is available, deactivate and delete the plugin immediately.

🔧 Temporary Workarounds

Implement CSRF Tokens Manually

WordPress

Add nonce verification to plugin forms and AJAX requests to prevent CSRF attacks.

Add wp_nonce_field() to forms and check with wp_verify_nonce() in processing scripts

🧯 If You Can't Patch

  • Deactivate and remove the ECT Add to Cart Button plugin from your WordPress site immediately.
  • Implement a Web Application Firewall (WAF) with CSRF and XSS protection rules.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'ECT Add to Cart Button' version 1.4 or earlier.

Check Version:

wp plugin list --name='ect-add-to-cart-button' --field=version (if WP-CLI is installed)

Verify Fix Applied:

After update, verify the plugin version is higher than 1.4 in the WordPress plugins list.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to WordPress admin-ajax.php or admin-post.php with plugin-specific parameters
  • Multiple failed nonce verification attempts in WordPress debug logs

Network Indicators:

  • HTTP requests containing 'ect_add_to_cart' parameters without proper referrer or nonce headers

SIEM Query:

source="wordpress.log" AND ("ect_add_to_cart" OR "admin-ajax.php?action=ect_")

🔗 References

📤 Share & Export