WordPress Contact Form Maker Plugin SQL Injection Vulnerability (CVE-2018-25347)
WordPress Contact Form Maker Plugin version 1.12.20 is vulnerable to SQL injection, enabling authenticated attackers to manipulate database queries via AJAX actions (FormMakerSQLMapping and generete_csv_fmc) by injecting malicious SQL code through the 'name' and 'search_labels' parameters, potentially extracting sensitive database information or escalating privileges.
The WordPress Contact Form Maker Plugin version 1.12.20 is susceptible to SQL injection vulnerabilities. Authenticated attackers can exploit these vulnerabilities to manipulate database queries through specific AJAX actions, namely ‘FormMakerSQLMapping’ and ‘generete_csv_fmc’. By injecting malicious SQL code via the ’name’ and ‘search_labels’ parameters, attackers can potentially extract sensitive information stored in the database or elevate their privileges within the WordPress application. This vulnerability allows malicious actors to compromise the integrity and confidentiality of data managed by the Contact Form Maker plugin. Defenders should prioritize patching and detection efforts to mitigate potential exploitation.
Attack Chain
- Attacker authenticates to the WordPress application.
- Attacker crafts a malicious HTTP request targeting the ‘FormMakerSQLMapping’ or ‘generete_csv_fmc’ AJAX action.
- The crafted request includes SQL injection payloads within the ’name’ or ‘search_labels’ parameters.
- The WordPress server processes the request, passing the malicious SQL code to the database query.
- The injected SQL code modifies the intended database query, allowing the attacker to extract sensitive data.
- The attacker retrieves the extracted data from the server response.
- The attacker uses the extracted data to escalate privileges or gain further access to the WordPress application.
Impact
Successful exploitation of this vulnerability can lead to the compromise of sensitive data stored within the WordPress database. This may include user credentials, customer data, or other confidential information managed by the Contact Form Maker plugin. Attackers can potentially use this access to escalate privileges, gain control of the WordPress site, and potentially use it as a beachhead for further attacks. The affected plugin version is 1.12.20, indicating that sites which have not applied updates are vulnerable.
Recommendation
- Upgrade the WordPress Contact Form Maker Plugin to a version later than 1.12.20 to remediate the vulnerability (CVE-2018-25347).
- Deploy the Sigma rule provided below to detect potential SQL injection attempts targeting the vulnerable AJAX actions.
- Monitor web server logs for suspicious POST requests to ‘FormMakerSQLMapping’ or ‘generete_csv_fmc’ containing SQL syntax in the ’name’ or ‘search_labels’ parameters.
Detection coverage 2
Detects CVE-2018-25347 Exploitation — WordPress Contact Form Maker SQL Injection Attempt
highDetects CVE-2018-25347 exploitation — SQL injection attempts in WordPress Contact Form Maker Plugin via FormMakerSQLMapping AJAX action
Detects CVE-2018-25347 Exploitation — WordPress Contact Form Maker SQL Injection Attempt generete_csv_fmc
highDetects CVE-2018-25347 exploitation — SQL injection attempts in WordPress Contact Form Maker Plugin via generete_csv_fmc AJAX action
Detection queries are available on the platform. Get full rules →