CVE-2024-10108

7.2 HIGH

📋 TL;DR

This stored XSS vulnerability in the WPAdverts WordPress plugin allows unauthenticated attackers to inject malicious scripts into website pages via the adverts_add shortcode. When users visit pages containing the injected scripts, the scripts execute in their browsers, potentially stealing session cookies or redirecting to malicious sites. All WordPress sites using WPAdverts plugin versions up to 2.1.6 are affected.

💻 Affected Systems

Products:
  • WPAdverts - Classifieds Plugin for WordPress
Versions: All versions up to and including 2.1.6
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Any WordPress site with the WPAdverts plugin enabled and using the adverts_add shortcode is vulnerable.

⚠️ 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 steal administrator session cookies, take over WordPress sites, install backdoors, deface websites, or redirect visitors to malware distribution sites.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies, perform phishing attacks, or redirect users to malicious websites.

🟢

If Mitigated

With proper input validation and output escaping, the malicious scripts would be neutralized before reaching users' browsers.

🌐 Internet-Facing: HIGH
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

The vulnerability requires no authentication and exploitation is straightforward via the shortcode parameter.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.1.7

Vendor Advisory: https://plugins.trac.wordpress.org/changeset/3178088/

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find WPAdverts plugin. 4. Click 'Update Now' if update available. 5. Alternatively, download version 2.1.7+ from WordPress repository and manually update.

🔧 Temporary Workarounds

Disable WPAdverts Plugin

linux

Temporarily disable the vulnerable plugin until patched.

wp plugin deactivate wpadverts

Remove adverts_add Shortcode Usage

all

Remove or disable usage of the vulnerable adverts_add shortcode from posts/pages.

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with XSS protection rules to block malicious payloads.
  • Restrict access to pages using the adverts_add shortcode to authenticated users only.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for WPAdverts version. If version is 2.1.6 or lower, you are vulnerable.

Check Version:

wp plugin get wpadverts --field=version

Verify Fix Applied:

After updating, verify WPAdverts plugin version shows 2.1.7 or higher in WordPress admin.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests containing script tags to pages with adverts_add shortcode
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • Outbound connections to suspicious domains from your WordPress site
  • Unexpected JavaScript execution in browser developer tools

SIEM Query:

source="web_server_logs" AND ("adverts_add" AND ("<script>" OR "javascript:" OR "onerror=" OR "onload="))

🔗 References

📤 Share & Export