CVE-2024-22162

7.1 HIGH

📋 TL;DR

This vulnerability allows attackers to inject malicious scripts into web pages generated by the WPZOOM Shortcodes WordPress plugin. When a user visits a specially crafted link, the script executes in their browser, potentially stealing cookies, session tokens, or performing actions on their behalf. All WordPress sites using WPZOOM Shortcodes versions up to 1.0.3 are affected.

💻 Affected Systems

Products:
  • WPZOOM Shortcodes WordPress Plugin
Versions: n/a through 1.0.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations with vulnerable plugin versions are affected regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could steal administrator session cookies, take over WordPress sites, deface websites, or redirect users to malicious sites.

🟠

Likely Case

Attackers steal user session cookies, perform actions as authenticated users, or redirect to phishing pages.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts are neutralized before reaching users.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Reflected XSS vulnerabilities are commonly exploited via phishing links or malicious advertisements.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 1.0.4 or later

Vendor Advisory: https://patchstack.com/database/vulnerability/wpzoom-shortcodes/wordpress-wpzoom-shortcodes-plugin-1-0-1-reflected-cross-site-scripting-xss-vulnerability

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find WPZOOM Shortcodes. 4. Click 'Update Now' if available. 5. Alternatively, download version 1.0.4+ from WordPress.org and replace plugin files.

🔧 Temporary Workarounds

Disable WPZOOM Shortcodes Plugin

all

Temporarily disable the vulnerable plugin until patched.

wp plugin deactivate wpzoom-shortcodes

Implement WAF Rules

all

Add web application firewall rules to block XSS payloads targeting WPZOOM Shortcodes endpoints.

🧯 If You Can't Patch

  • Implement Content Security Policy (CSP) headers to restrict script execution sources.
  • Use browser security extensions that block reflected XSS attacks.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for WPZOOM Shortcodes version.

Check Version:

wp plugin get wpzoom-shortcodes --field=version

Verify Fix Applied:

Verify plugin version is 1.0.4 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual GET/POST requests containing script tags or JavaScript code to WPZOOM Shortcodes endpoints.
  • Multiple failed login attempts following suspicious URL visits.

Network Indicators:

  • HTTP requests with suspicious parameters containing <script>, javascript:, or encoded payloads.

SIEM Query:

source="wordpress.log" AND ("wpzoom-shortcodes" OR "wpzoom") AND ("<script>" OR "javascript:" OR "%3Cscript%3E")

🔗 References

📤 Share & Export