Skip to main content
CVE Vulnerability Database

CVE-2024-4757: Logo Manager For Enamad CSRF Vulnerability

CVE-2024-4757 is a CSRF flaw in Logo Manager For Enamad WordPress plugin that enables attackers to inject stored XSS payloads through admin accounts. This article covers technical details, affected versions, and mitigation.

Published:

CVE-2024-4757 Overview

CVE-2024-4757 affects the Logo Manager For Enamad WordPress plugin through version 0.7.0. The plugin lacks Cross-Site Request Forgery (CSRF) checks in some functions and fails to sanitize or escape user-supplied input. An attacker can trick an authenticated administrator into visiting a crafted page, causing the browser to submit a forged request that stores a Cross-Site Scripting (XSS) payload [CWE-79]. The injected script executes in the context of any user who later views the affected page. The flaw carries a CVSS score of 8.1 and affects confidentiality and integrity.

Critical Impact

Successful exploitation leads to stored XSS in the WordPress administrator context, enabling session theft, account takeover, and arbitrary administrative actions.

Affected Products

  • Wp-master Logo Manager For Enamad WordPress plugin
  • All versions through 0.7.0
  • WordPress sites running the vulnerable plugin with administrator accounts

Discovery Timeline

  • 2024-06-25 - CVE-2024-4757 published to NVD
  • 2025-05-19 - Last updated in NVD database

Technical Details for CVE-2024-4757

Vulnerability Analysis

The Logo Manager For Enamad plugin exposes administrative actions without anti-CSRF tokens (nonces). Requests that modify plugin configuration data do not verify the origin or intent of the request. The plugin also fails to sanitize input on write and does not escape output on display. These two weaknesses combine into a CSRF-to-stored-XSS chain. An attacker hosts a malicious page that submits a forged form or fetch request to a vulnerable endpoint. When a logged-in administrator visits the page, the browser sends authenticated cookies along with the attacker-controlled payload. The plugin accepts the unsanitized input and stores it in the WordPress database. The payload then executes whenever the affected admin page is rendered.

Root Cause

The root cause is twofold. First, vulnerable handlers omit calls to WordPress nonce verification functions such as check_admin_referer() or wp_verify_nonce(). Second, the handlers write user input directly to the database without sanitize_text_field() or equivalent filtering, and output that data without esc_html() or esc_attr() escaping.

Attack Vector

Exploitation requires user interaction from an authenticated administrator. The attacker delivers a link or embeds a request in a third-party page. No prior authentication on the attacker's side is needed. Once the administrator triggers the forged request, the stored XSS payload persists and runs in the browsers of subsequent administrators visiting the plugin's interface. For technical specifics, see the WPScan Vulnerability Report.

Detection Methods for CVE-2024-4757

Indicators of Compromise

  • Unexpected <script> tags, event handlers, or encoded JavaScript stored in plugin option rows within the wp_options table.
  • Outbound requests from administrator browsers to unfamiliar domains after visiting plugin pages.
  • New or modified WordPress administrator accounts created shortly after a logged-in admin browsed external sites.

Detection Strategies

  • Scan the WordPress database for plugin settings containing HTML or JavaScript artifacts such as onerror=, javascript:, or <svg.
  • Review web server access logs for POST requests to Logo Manager For Enamad endpoints lacking a valid _wpnonce parameter.
  • Inspect the WordPress audit log for plugin configuration changes that do not correlate with legitimate admin activity.

Monitoring Recommendations

  • Enable a web application firewall (WAF) rule set that blocks requests containing script tags in plugin form fields.
  • Alert on administrator browser sessions issuing unusual cross-origin POSTs to /wp-admin/admin.php or admin-post.php.
  • Monitor for changes to plugin option values stored in the wp_options table and flag entries containing HTML.

How to Mitigate CVE-2024-4757

Immediate Actions Required

  • Disable or remove the Logo Manager For Enamad plugin until a patched release is verified.
  • Audit administrator accounts and rotate credentials for any user who may have visited untrusted sites while logged in.
  • Clear stored plugin options and reset configuration values that may contain injected payloads.

Patch Information

No vendor-supplied fixed version is listed in the available advisory data. The vulnerability affects the plugin through 0.7.0. Review the WPScan Vulnerability Report for the latest remediation status and check the WordPress.org plugin repository for updated releases.

Workarounds

  • Restrict administrator browsing habits and require a separate browser profile for WordPress administration.
  • Deploy a WAF rule blocking unauthenticated POST requests to the plugin's admin endpoints.
  • Apply Content Security Policy (CSP) headers that disallow inline scripts in the WordPress admin interface.
bash
# Configuration example
# Temporarily deactivate the vulnerable plugin via WP-CLI
wp plugin deactivate logo-manager-for-enamad
wp plugin delete logo-manager-for-enamad

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.