CVE-2024-7863·PHP vulnerability
The Favicon Generator (CLOSED) WordPress plugin before 2.1 does not validate files to be uploaded and does not have CSRF checks, which could allow attackers to make logged in admin upload arbitrary files such as PHP on the server
- Severity
- medium
- Software
- PHP
- Fixed in
- 2.1
- Published
- 2024-09-13
Affected versions
Until: 2.1
Fixed in: 2.1
How to fix this CVE
The Favicon Generator WordPress plugin versions prior to 2.1 contain critical file upload vulnerabilities that permit authenticated administrators to upload malicious files, including executable PHP scripts, without proper validation or CSRF protection. Immediately update the Favicon Generator plugin to version 2.1 or later, and audit your WordPress uploads directory for any suspicious PHP or executable files that may have been planted. If the plugin is no longer maintained, consider removing it entirely and replacing it with an actively supported alternative.
sudo dnf update phpDefensia detects this vulnerability
WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to restrict file uploads to the WordPress uploads directory based on MIME type (whitelist only image formats like .jpg, .png, .gif, .ico). Block any POST requests to plugin administration endpoints that contain PHP, executable, or shell script extensions. Additionally, enforce strict Content-Type validation headers and require Content-Length limits on multipart form data to prevent oversized payloads.How to check if you are affected
- Check the Favicon Generator plugin version: In your WordPress admin dashboard, navigate to Plugins and locate 'Favicon Generator (CLOSED)' to view the installed version number.
- Verify the plugin file location: Run `find /var/www/html -type d -name 'favicon-generator' 2>/dev/null` to confirm if the plugin is installed on your server.
- Review upload directory permissions: Execute `ls -la /var/www/html/wp-content/uploads/` and check for suspicious PHP files or unexpected executable permissions (777 or 755).
- Scan PHP error logs for exploitation attempts: Run `grep -i 'favicon-generator\|upload' /var/log/php-fpm/error.log /var/log/apache2/error.log 2>/dev/null` to detect file upload-related errors or warnings.
- Confirm the fix: After updating, re-check the plugin version in WordPress admin to ensure it displays version 2.1 or higher.
FAQ
What is CVE-2024-7863?
CVE-2024-7863 is a file upload vulnerability in the WordPress Favicon Generator plugin that allows authenticated administrators to bypass file validation controls and upload arbitrary files, including malicious PHP scripts, due to missing CSRF protections and insufficient input sanitization.
Is CVE-2024-7863 being actively exploited?
No, CVE-2024-7863 is not currently listed on the CISA KEV catalog and has no known public exploits; however, the vulnerability is trivial to exploit if an attacker gains admin access, making proactive patching essential.
What versions of the Favicon Generator plugin are affected by CVE-2024-7863?
All versions of the Favicon Generator plugin prior to version 2.1 are vulnerable; the plugin is now marked as closed, so no further updates will be released.
How do I check if my WordPress site is vulnerable to CVE-2024-7863?
Log into your WordPress dashboard, navigate to Plugins, and search for 'Favicon Generator (CLOSED)'; if it is installed and the version is below 2.1, your site is vulnerable. You can also run `wp plugin list --field=name,version | grep favicon` via WP-CLI if available.
Does Defensia detect CVE-2024-7863?
Yes — Defensia's CVE advisory scanner compares installed WordPress plugin versions against the NVD database. If the Favicon Generator plugin is detected on a monitored server, CVE-2024-7863 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-7863. Free for 1 server.
Get started free