CVE-2025-24699

7.1 HIGH

📋 TL;DR

This CSRF vulnerability in the WP Coder WordPress plugin allows attackers to trick authenticated administrators into executing malicious actions, leading to stored XSS. It affects all WordPress sites using WP Coder versions up to 3.6. Attackers can inject malicious scripts that execute when other users visit affected pages.

💻 Affected Systems

Products:
  • Wow-Company WP Coder WordPress Plugin
Versions: All versions up to and including 3.6
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with WP Coder plugin active. 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 persistent malicious scripts that steal session cookies, redirect users to phishing sites, or perform administrative actions on behalf of victims, potentially leading to complete site compromise.

🟠

Likely Case

Attackers create malicious pages that trick logged-in administrators into executing actions that inject XSS payloads into the site, affecting all visitors who view the compromised pages.

🟢

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 visiting a malicious page while logged into WordPress. The CSRF leads to stored XSS that affects all site visitors.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 3.6

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/wp-coder/vulnerability/wordpress-wp-coder-plugin-3-6-csrf-to-cross-site-scripting-xss-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find WP Coder and check if update is available. 4. Click 'Update Now' if update is available. 5. If no update appears, manually download latest version from WordPress.org and replace plugin files.

🔧 Temporary Workarounds

Disable WP Coder Plugin

all

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate wp-coder

Implement CSRF Protection Headers

all

Add security headers to WordPress to help mitigate CSRF attacks

Add to .htaccess: Header set X-Frame-Options "SAMEORIGIN"
Add to .htaccess: Header set Content-Security-Policy "frame-ancestors 'self'"

🧯 If You Can't Patch

  • Remove WP Coder plugin entirely and find alternative code injection solution
  • Restrict admin panel access to trusted IP addresses only using .htaccess or firewall rules

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel → Plugins → Installed Plugins → WP Coder version. If version is 3.6 or lower, you are vulnerable.

Check Version:

wp plugin get wp-coder --field=version

Verify Fix Applied:

After updating, verify WP Coder version is higher than 3.6 in WordPress admin plugins page.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to wp-admin/admin-ajax.php or wp-admin/admin-post.php with wp-coder parameters
  • Multiple failed CSRF token validations in WordPress logs

Network Indicators:

  • Unexpected iframe or form submissions to WordPress admin endpoints from external domains
  • Suspicious referrer headers in admin area requests

SIEM Query:

source="wordpress.log" AND ("wp-coder" OR "admin-ajax.php") AND ("POST" OR "csrf")

🔗 References

📤 Share & Export