CVE-2024-6547

5.3 MEDIUM

📋 TL;DR

The Add Admin CSS WordPress plugin discloses full server path information to unauthenticated attackers in versions up to 2.0.1. This occurs because test files with display_errors enabled remain accessible. While the path disclosure alone doesn't cause direct damage, it can help attackers map the server structure for subsequent attacks.

💻 Affected Systems

Products:
  • WordPress Add Admin CSS plugin
Versions: All versions up to and including 2.0.1
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects WordPress installations with the vulnerable plugin version installed and activated.

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

Attackers combine path disclosure with other vulnerabilities (like file inclusion or directory traversal) to execute arbitrary code, access sensitive files, or compromise the WordPress installation.

🟠

Likely Case

Attackers gather reconnaissance information about server structure to plan more sophisticated attacks, potentially leading to information disclosure that aids in targeted exploitation.

🟢

If Mitigated

Limited to information disclosure only, with no direct system compromise if other vulnerabilities are properly patched and security controls are in place.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: LOW

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires accessing specific test files that disclose error messages with full paths. No authentication required.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 2.0.1

Vendor Advisory: https://plugins.trac.wordpress.org/browser/add-admin-css/trunk/tests/phpunit/bootstrap.php

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Add Admin CSS' plugin. 4. Click 'Update Now' if update available. 5. If no update available, deactivate and delete plugin, then install latest version from WordPress repository.

🔧 Temporary Workarounds

Remove test files manually

linux

Delete the vulnerable test files from the plugin directory to prevent path disclosure.

rm -rf /path/to/wordpress/wp-content/plugins/add-admin-css/tests/

Disable error display

all

Configure PHP to not display errors in production environments.

php_value display_errors Off in .htaccess or php.ini

🧯 If You Can't Patch

  • Deactivate and remove the Add Admin CSS plugin entirely from WordPress.
  • Implement web application firewall rules to block access to /tests/ directory paths.

🔍 How to Verify

Check if Vulnerable:

Access http://your-site.com/wp-content/plugins/add-admin-css/tests/phpunit/bootstrap.php and check if full server path is disclosed in error messages.

Check Version:

Check WordPress admin panel > Plugins > Add Admin CSS, or examine /wp-content/plugins/add-admin-css/readme.txt file version header.

Verify Fix Applied:

After updating, attempt to access the test file URL again - it should return 404 or not disclose path information.

📡 Detection & Monitoring

Log Indicators:

  • HTTP 200 requests to /wp-content/plugins/add-admin-css/tests/ paths
  • Error logs containing full server path disclosures

Network Indicators:

  • Unusual GET requests to plugin test directories from external IPs

SIEM Query:

source="web_access_logs" AND uri_path="/wp-content/plugins/add-admin-css/tests/" AND status=200

🔗 References

📤 Share & Export