CVE-2024-54428

7.1 HIGH

📋 TL;DR

This CVE describes a Cross-Site Request Forgery (CSRF) vulnerability in the WordPress 'Add image to Post' plugin that leads to Stored Cross-Site Scripting (XSS). Attackers can trick authenticated administrators into executing malicious actions that inject persistent scripts into WordPress sites. All WordPress installations using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • WordPress Add image to Post plugin
Versions: n/a through 0.6
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin enabled and an authenticated admin user.

⚠️ 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

Complete site takeover through admin session hijacking, data theft, defacement, or malware distribution to visitors.

🟠

Likely Case

Site defacement, cookie theft from administrators, or redirection to malicious sites.

🟢

If Mitigated

Limited impact with proper CSRF tokens and Content Security Policy (CSP) headers in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires social engineering to trick an authenticated admin, but the technical execution is straightforward.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.7 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/add-image-to-post/vulnerability/wordpress-add-image-to-post-plugin-0-6-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 'Add image to Post' plugin. 4. Click 'Update Now' if update available, or delete and replace with version 0.7+. 5. Verify plugin is updated to 0.7 or higher.

🔧 Temporary Workarounds

Disable vulnerable plugin

all

Temporarily deactivate the plugin until patched.

wp plugin deactivate add-image-to-post

Implement CSRF protection headers

all

Add Content Security Policy headers to mitigate XSS impact.

Add to .htaccess: Header set Content-Security-Policy "default-src 'self'; script-src 'self'"
Or configure in web server settings

🧯 If You Can't Patch

  • Remove the 'Add image to Post' plugin entirely from WordPress installation.
  • Restrict admin access to trusted networks only and implement multi-factor authentication.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for 'Add image to Post' version 0.6 or lower.

Check Version:

wp plugin get add-image-to-post --field=version

Verify Fix Applied:

Confirm plugin version is 0.7 or higher in WordPress admin plugins list.

📡 Detection & Monitoring

Log Indicators:

  • Unusual POST requests to plugin admin endpoints without referrer headers
  • Unexpected script tags in WordPress posts/pages

Network Indicators:

  • CSRF attack patterns with missing anti-CSRF tokens
  • External script injections in HTTP responses

SIEM Query:

source="wordpress.log" AND ("add-image-to-post" OR "wp-admin/admin-ajax.php") AND status=200 AND method=POST AND referrer="-"

🔗 References

📤 Share & Export