Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-12159 Overview
The Optimize Your Campaigns – Google Shopping – Google Ads – Google Adwords plugin for WordPress contains an information exposure vulnerability [CWE-200]. All versions up to and including 3.1 expose the print_php_information.php script to unauthenticated requests. Attackers can retrieve sensitive PHP configuration data by requesting the script directly over the network. The disclosed information can support follow-on attacks against the WordPress host.
Critical Impact
Unauthenticated remote attackers can read PHP configuration details from affected WordPress sites, including environment data useful for reconnaissance and further exploitation.
Affected Products
- WordPress plugin: Optimize Your Campaigns – Google Shopping – Google Ads – Google Adwords (muzaara-adwords-optimize-dashboard)
- All plugin versions through 3.1
- WordPress sites exposing the plugin's lib/muzaara/lib/google-ads-php/scripts/print_php_information.php script
Discovery Timeline
- 2025-01-07 - CVE-2024-12159 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12159
Vulnerability Analysis
The plugin ships a diagnostic script, print_php_information.php, inside its library directory. The script executes PHP's phpinfo()-style output without any authentication or access control. Because WordPress serves plugin assets directly from wp-content/plugins/, the script is reachable over HTTP by anyone who knows the URL. An unauthenticated attacker issues a single GET request and receives detailed PHP environment data in response.
The exposed data commonly includes loaded modules, server paths, environment variables, PHP version, build flags, and configuration directives. Attackers use this reconnaissance to fingerprint the host, locate vulnerable PHP extensions, identify installed software, and plan targeted exploitation. The CWE-200 classification reflects the disclosure of information to an unauthorized actor.
Root Cause
The root cause is a missing authentication and authorization check on a developer-oriented script left in the production distribution. The file is placed in a publicly accessible plugin path and performs no capability check, nonce validation, or IP restriction before executing. Shipping diagnostic scripts without access controls violates the principle of least privilege for sensitive endpoints.
Attack Vector
Exploitation requires only network access to the target WordPress site. An attacker sends an HTTP GET request to the plugin path containing print_php_information.php. The server returns the PHP configuration page in the response body. No credentials, user interaction, or elevated privileges are needed. See the WordPress Plugin PHP Script source for the vulnerable file and the Wordfence Vulnerability Report for additional analysis.
Detection Methods for CVE-2024-12159
Indicators of Compromise
- HTTP GET requests to URLs containing /wp-content/plugins/muzaara-adwords-optimize-dashboard/lib/muzaara/lib/google-ads-php/scripts/print_php_information.php
- Server responses containing phpinfo() output such as PHP Version, Configuration, or Environment headers
- Access log entries from unknown or scanner user agents targeting the plugin path
Detection Strategies
- Review web server access logs for requests to the plugin's scripts/ directory from unauthenticated sources.
- Deploy a web application firewall rule that blocks or alerts on direct requests to print_php_information.php.
- Run authenticated plugin inventory scans to identify WordPress sites running muzaara-adwords-optimize-dashboard version 3.1 or earlier.
Monitoring Recommendations
- Alert on HTTP 200 responses to the vulnerable URL path from external IP ranges.
- Correlate access attempts with subsequent reconnaissance activity such as directory enumeration or exploitation attempts against disclosed PHP modules.
- Monitor WordPress plugin version data in asset inventories to identify unpatched installations.
How to Mitigate CVE-2024-12159
Immediate Actions Required
- Audit WordPress sites for the muzaara-adwords-optimize-dashboard plugin and record installed versions.
- Remove or disable the plugin on any host where it is not actively used.
- Block external access to the print_php_information.php path at the web server or WAF layer until a patched release is applied.
Patch Information
No fixed version is identified in the referenced NVD entry at the time of publication. Monitor the Wordfence Vulnerability Report and the WordPress plugin repository for an updated release above version 3.1 and apply it as soon as it is published.
Workarounds
- Add a web server rule (for example, in Apache or Nginx) to deny all requests to print_php_information.php within the plugin directory.
- Restrict access to the plugin's scripts/ directory using HTTP authentication or IP allow-listing.
- Delete the print_php_information.php file from the plugin installation if the plugin must remain active.
# Nginx configuration example to block the vulnerable script
location ~* /wp-content/plugins/muzaara-adwords-optimize-dashboard/.*/print_php_information\.php$ {
deny all;
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

