CVE-2024-12849

7.5 HIGH

📋 TL;DR

The Error Log Viewer By WP Guru WordPress plugin contains an unauthenticated arbitrary file read vulnerability. Attackers can exploit this to read any file on the server, potentially exposing sensitive configuration files, credentials, or other confidential data. All WordPress sites using this plugin up to version 1.0.1.3 are affected.

💻 Affected Systems

Products:
  • Error Log Viewer By WP Guru WordPress Plugin
Versions: All versions up to and including 1.0.1.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: All installations with the vulnerable plugin version are affected regardless of configuration.

⚠️ 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 server compromise via reading sensitive files like wp-config.php containing database credentials, SSH keys, or other configuration files leading to full site takeover.

🟠

Likely Case

Exposure of sensitive information including database credentials, API keys, user data, and server configuration details.

🟢

If Mitigated

Limited impact if file permissions restrict access to sensitive files, but still exposes readable files.

🌐 Internet-Facing: HIGH - Unauthenticated attackers can exploit this remotely without any credentials.
🏢 Internal Only: MEDIUM - Internal attackers could still exploit, but external threat is higher.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires sending crafted AJAX requests to the vulnerable endpoint.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 1.0.1.3

Vendor Advisory: https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3215563%40error-log-viewer-wp&new=3215563%40error-log-viewer-wp&sfp_email=&sfph_mail=#file10

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Error Log Viewer By WP Guru'. 4. Click 'Update Now' if available, or delete and reinstall latest version. 5. Verify plugin version is above 1.0.1.3.

🔧 Temporary Workarounds

Disable vulnerable AJAX endpoint

WordPress

Remove or restrict access to the vulnerable wp_ajax_nopriv_elvwp_log_download action

Add to theme's functions.php or custom plugin: remove_action('wp_ajax_nopriv_elvwp_log_download', 'elvwp_log_download');

Web Application Firewall rule

all

Block requests to the vulnerable AJAX endpoint

WAF rule to block: POST requests containing 'action=elvwp_log_download'

🧯 If You Can't Patch

  • Immediately disable the Error Log Viewer By WP Guru plugin
  • Implement strict file permissions (chmod 600 for sensitive files like wp-config.php)

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Error Log Viewer By WP Guru version. If version is 1.0.1.3 or lower, you are vulnerable.

Check Version:

wp plugin list --name='error-log-viewer-wp' --field=version

Verify Fix Applied:

Verify plugin version is above 1.0.1.3. Test by attempting to access /wp-admin/admin-ajax.php?action=elvwp_log_download with a file parameter - should return error or no data.

📡 Detection & Monitoring

Log Indicators:

  • POST requests to /wp-admin/admin-ajax.php with 'action=elvwp_log_download' parameter
  • Unusual file access patterns from unauthenticated users

Network Indicators:

  • HTTP POST requests containing 'elvwp_log_download' in parameters
  • Unusual spikes in requests to admin-ajax.php

SIEM Query:

source="web_logs" AND uri_path="/wp-admin/admin-ajax.php" AND http_method="POST" AND query_string="*action=elvwp_log_download*"

🔗 References

📤 Share & Export