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-12255 Overview
CVE-2024-12255 affects the Accept Stripe Payments Using Contact Form 7 plugin for WordPress, developed by Zealousweb. All versions up to and including 2.5 expose server configuration data through the cf7sa-info.php file, which returns the output of the PHP phpinfo() function. Unauthenticated remote attackers can request this file to extract detailed configuration information about the underlying PHP environment and web server. The disclosed data can support follow-on attacks against the host, including targeted exploitation of known PHP or module vulnerabilities. The weakness is categorized under CWE-200 (Exposure of Sensitive Information) and CWE-732 (Incorrect Permission Assignment for Critical Resource).
Critical Impact
Unauthenticated attackers can retrieve full phpinfo() output disclosing PHP configuration, loaded modules, environment variables, and server paths that assist reconnaissance for further exploitation.
Affected Products
- Zealousweb Accept Stripe Payments Using Contact Form 7 plugin for WordPress
- All plugin versions up to and including 2.5
- WordPress sites exposing the plugin's cf7sa-info.php file to the public internet
Discovery Timeline
- 2024-12-12 - CVE-2024-12255 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-12255
Vulnerability Analysis
The plugin ships a diagnostic script named cf7sa-info.php that calls PHP's phpinfo() function and returns the output to any HTTP requester. The file does not perform authentication, authorization, nonce validation, or capability checks before producing the response. Any unauthenticated client that can reach the WordPress site can issue a GET request to the file's path under the plugin directory and receive the complete phpinfo() page.
The phpinfo() output includes PHP version and build flags, loaded extensions, php.ini directives, server environment variables, document root paths, SAPI information, and HTTP request headers. Attackers use this information to fingerprint the environment, identify vulnerable PHP or module versions, locate absolute file paths for chained exploitation, and discover sensitive variables that may appear in the server environment.
Root Cause
The root cause is a diagnostic file left accessible in a production plugin without access control. The script performs a privileged introspection operation (phpinfo()) but is reachable from the web with no gating logic. The design violates least-privilege expectations for critical resources, matching [CWE-732], and results in direct exposure of sensitive data, matching [CWE-200].
Attack Vector
Exploitation requires only network access to the WordPress site and no credentials or user interaction. An attacker sends a single HTTP GET request to the plugin path hosting cf7sa-info.php. The server returns the full phpinfo() HTML page. The vulnerability does not alter data or impact availability, but the disclosed configuration is routinely used to plan secondary attacks against the stack.
No verified public exploit code is required to trigger the disclosure; the behavior is reproduced by a direct URL request. Refer to the Wordfence Vulnerability Report for additional technical analysis.
Detection Methods for CVE-2024-12255
Indicators of Compromise
- HTTP GET requests to any path ending in cf7sa-info.php within the accept-stripe-payments-using-contact-form-7 plugin directory
- Server responses containing the strings phpinfo(), PHP Version, or Configuration File (php.ini) Path returned from plugin URLs
- Repeated access attempts to the plugin directory from a single source IP associated with reconnaissance scans
Detection Strategies
- Review web server access logs for requests to /wp-content/plugins/accept-stripe-payments-using-contact-form-7/cf7sa-info.php and alert on any non-administrative access
- Deploy a web application firewall rule that blocks requests to cf7sa-info.php and logs attempts for investigation
- Correlate plugin reconnaissance requests with subsequent exploitation attempts against disclosed PHP modules or paths
Monitoring Recommendations
- Enable response-size and content-type monitoring on WordPress plugin directories to flag unusually large HTML responses from diagnostic scripts
- Monitor outbound scanning tool signatures (wpscan, nuclei, nikto) in HTTP user-agent fields targeting the plugin
- Track plugin inventory and version drift across WordPress hosts to identify vulnerable installations of versions 2.5 and earlier
How to Mitigate CVE-2024-12255
Immediate Actions Required
- Update the Accept Stripe Payments Using Contact Form 7 plugin to the version released after 2.5 that removes or restricts cf7sa-info.php
- Delete or rename the cf7sa-info.php file in the plugin directory if an immediate update is not possible
- Audit web logs for prior access to the file and treat matching source IPs as having obtained server reconnaissance data
Patch Information
The vendor addressed the issue in a plugin update tracked by the WordPress plugin repository. Review the WordPress Plugin Change Log for the specific changeset that remediates the exposure. Apply the fixed version through the WordPress plugin manager or by replacing the plugin files on disk.
Workarounds
- Block external access to cf7sa-info.php using web server configuration or a WAF rule until the plugin is updated
- Disable the plugin on sites that do not actively use Stripe payments through Contact Form 7
- Restrict access to the plugin directory by IP allow-list for administrative networks only
# Apache: deny public access to the diagnostic file
<Files "cf7sa-info.php">
Require all denied
</Files>
# Nginx: return 403 for requests to the diagnostic file
location ~* /wp-content/plugins/accept-stripe-payments-using-contact-form-7/cf7sa-info\.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

