CVE-2025-57911

6.5 MEDIUM

📋 TL;DR

This DOM-based cross-site scripting vulnerability in the WPFactory Adverts WordPress plugin allows attackers to inject malicious scripts into web pages viewed by users. It affects all WordPress sites running Adverts plugin versions up to 1.4. Attackers can steal session cookies, redirect users, or perform actions on their behalf.

💻 Affected Systems

Products:
  • WPFactory Adverts WordPress Plugin
Versions: All versions up to and including 1.4
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with the vulnerable plugin version, regardless of configuration.

⚠️ 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 steal administrator session cookies, gain full control of WordPress site, install backdoors, deface website, or steal sensitive user data.

🟠

Likely Case

Attackers steal user session cookies, redirect visitors to malicious sites, or perform limited actions within the context of the vulnerable page.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts are neutralized before execution, preventing any impact.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires user interaction with malicious input, typically through crafted links or forms.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version after 1.4

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/adverts-click-tracker/vulnerability/wordpress-adverts-plugin-1-4-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 'Adverts' plugin. 4. Click 'Update Now' if update available. 5. If no update, deactivate and remove plugin, then install latest version from WordPress repository.

🔧 Temporary Workarounds

Input Sanitization Filter

all

Add custom PHP filter to sanitize all user input before processing by the Adverts plugin.

Add to theme's functions.php: add_filter('adverts_process_input', 'sanitize_text_field');

🧯 If You Can't Patch

  • Disable or remove the Adverts plugin immediately.
  • Implement Content Security Policy (CSP) headers to restrict script execution.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin > Plugins > Installed Plugins for Adverts version 1.4 or earlier.

Check Version:

wp plugin list --name=adverts --field=version

Verify Fix Applied:

Verify plugin version is greater than 1.4 in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST/GET requests to Adverts plugin endpoints with script tags or JavaScript payloads.
  • Multiple failed login attempts following Adverts-related requests.

Network Indicators:

  • HTTP requests containing <script> tags or JavaScript code in parameters targeting /wp-content/plugins/adverts/ paths.

SIEM Query:

source="web_logs" AND uri.path="/wp-content/plugins/adverts/" AND (http.request.uri.query CONTAINS "<script>" OR http.request.body CONTAINS "javascript:")

🔗 References

📤 Share & Export