CVE-2025-23698

7.1 HIGH

📋 TL;DR

This vulnerability in the WP Custom Google Search 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 websites. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • WP Custom Google Search WordPress Plugin
Versions: All versions up to and including 1.0
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 requires an authenticated administrator to be tricked into visiting a malicious page.

⚠️ 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 visitors to malicious sites, or takes full control of the WordPress site.

🟠

Likely Case

Attackers would inject scripts to steal session cookies or perform unauthorized actions on behalf of authenticated users, potentially compromising user accounts.

🟢

If Mitigated

With proper CSRF tokens and input validation, the attack chain would be broken at the initial CSRF stage, preventing the stored XSS.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

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

Exploitation requires social engineering to trick an authenticated administrator into clicking a malicious link. The CSRF leads to stored XSS payload injection.

🛠️ Fix & Mitigation

✅ Official Fix

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

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/wp-custom-google-search/vulnerability/wordpress-wp-custom-google-search-plugin-1-0-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 'WP Custom Google Search'. 4. Click 'Update Now' if available, or delete and install latest version from WordPress repository.

🔧 Temporary Workarounds

Disable Plugin

WordPress

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate wp-custom-google-search

Implement CSRF Protection

WordPress

Add CSRF tokens to all plugin forms if customizing is possible

🧯 If You Can't Patch

  • Remove the WP Custom Google Search plugin completely
  • Implement web application firewall (WAF) rules to block CSRF attempts and XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'WP Custom Google Search' version 1.0 or earlier

Check Version:

wp plugin get wp-custom-google-search --field=version

Verify Fix Applied:

Verify plugin version is greater than 1.0 in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin admin endpoints without referrer headers
  • JavaScript injection patterns in plugin settings

Network Indicators:

  • CSRF attempts with malicious payloads in POST parameters

SIEM Query:

source="wordpress.log" AND ("wp-custom-google-search" OR "custom_google_search") AND (POST AND NOT referer=*)

🔗 References

📤 Share & Export