CVE-2024-56259

6.5 MEDIUM

📋 TL;DR

This stored cross-site scripting (XSS) vulnerability in GeoDirectory WordPress plugin allows attackers to inject malicious scripts into web pages that are then executed when other users view those pages. All WordPress sites using GeoDirectory versions up to 2.3.84 are affected. The vulnerability occurs due to improper input sanitization during web page generation.

💻 Affected Systems

Products:
  • GeoDirectory WordPress Plugin
Versions: n/a through 2.3.84
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All WordPress installations with vulnerable GeoDirectory 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 admin accounts, deface websites, redirect users to malicious sites, or install backdoors for persistent access.

🟠

Likely Case

Attackers inject malicious JavaScript to steal user session cookies or credentials, potentially compromising user accounts and enabling further attacks within the WordPress environment.

🟢

If Mitigated

With proper input validation and output encoding, malicious scripts would be neutralized before reaching users, preventing execution while maintaining functionality.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Stored XSS vulnerabilities are commonly exploited, though specific exploit details for this CVE aren't publicly documented. Attackers need some level of access to inject malicious content.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.3.85 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/geodirectory/vulnerability/wordpress-geodirectory-plugin-2-3-84-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 GeoDirectory and click 'Update Now'. 4. Verify update completes successfully. 5. Clear any caching plugins or CDN caches.

🔧 Temporary Workarounds

Input Sanitization Filter

all

Add custom input sanitization filters for GeoDirectory fields

Add to theme's functions.php: add_filter('geodirectory_sanitize_input', 'custom_sanitize_callback', 10, 1);

Content Security Policy

linux

Implement CSP headers to restrict script execution

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' https:;"

🧯 If You Can't Patch

  • Disable GeoDirectory plugin temporarily until patched
  • Implement web application firewall (WAF) rules to block XSS payloads

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins → GeoDirectory version number

Check Version:

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

Verify Fix Applied:

Verify GeoDirectory version is 2.3.85 or higher in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to GeoDirectory endpoints with script tags
  • Multiple failed XSS attempts in web server logs

Network Indicators:

  • HTTP requests containing <script> tags to GeoDirectory API endpoints
  • Outbound connections to suspicious domains after visiting GeoDirectory pages

SIEM Query:

source="web_server" AND ("geodirectory" AND ("<script>" OR "javascript:" OR "onerror="))

🔗 References

📤 Share & Export