CVE-2024-3495
published 2024-05-22CVE-2024-3495: The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and including…
PriorityP185critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
13.62%
96.0th percentile
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and including, 2.7.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| trustyplugins | country_state_city_dropdown_cf7 | <= 2.7.2 | — |
Detection & IOCsextracted from sources · hover to see the quote
commandaction=tc_csca_get_cities&nonce_ajax={{nonce}}&sid=1+or+0+union+select+concat(0x64617461626173653a,(select%20md5({{num}})),0x7c76657273696f6e3a,(select%20md5({{num}})),0x7c757365723a,user()),2,3--+-↗
- →Monitor POST requests to /wp-admin/admin-ajax.php with the action parameter set to 'tc_csca_get_cities' — this is the specific AJAX action handler vulnerable to SQL injection via the 'cnt' and 'sid' parameters. ↗
- →Presence of the plugin path '/wp-content/plugins/country-state-city-auto-dropdown' in HTTP responses can be used to fingerprint vulnerable WordPress installations for targeted exploitation. ↗
- →The exploit extracts a nonce value from the page using the regex '"nonce":"(\S*)"' before submitting the malicious AJAX request — look for sequential GET then POST patterns to the same WordPress host. ↗
- →The attack is unauthenticated (no login required). Any POST to admin-ajax.php with action=tc_csca_get_cities from an unauthenticated session should be treated as suspicious. ↗
- ·The SQL injection payload uses hex-encoded string literals (e.g., 0x64617461626173653a) to obfuscate the UNION SELECT output — WAF rules must account for hex-encoded bypass techniques in POST body parameters. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-5p44-j78m-mc5m: The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and incl
ghsa_unreviewed·2024-05-22
CVE-2024-3495 [CRITICAL] CWE-89 GHSA-5p44-j78m-mc5m: The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and incl
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and including, 2.7.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
VulnCheck
Country State City Dropdown CF7 ‘cnt’ and 'sid' SQL Injection
vulncheck·2024·CVSS 9.8
CVE-2024-3495 [CRITICAL] Country State City Dropdown CF7 ‘cnt’ and 'sid' SQL Injection
Country State City Dropdown CF7 ‘cnt’ and 'sid' SQL Injection
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and including, 2.7.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Affected: Trusty Plugins Country State City Dropdown CF7 plugin for WordPress
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Exploitation References: https
No detection rules found.
Nuclei
Wordpress Country State City Dropdown <=2.7.2 - SQL Injection
nuclei·CVSS 9.8
CVE-2024-3495 [CRITICAL] Wordpress Country State City Dropdown <=2.7.2 - SQL Injection
Wordpress Country State City Dropdown <=2.7.2 - SQL Injection
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' parameters in versions up to, and including, 2.7.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Template:
id: CVE-2024-3495
info:
name: Wordpress Country State City Dropdown <=2.7.2 - SQL Injection
author: apple
severity: critical
description: |
The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' pa
https://plugins.trac.wordpress.org/browser/country-state-city-auto-dropdown/trunk/includes/ajax-actions.php#L22https://plugins.trac.wordpress.org/browser/country-state-city-auto-dropdown/trunk/includes/ajax-actions.php#L8https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3089374%40country-state-city-auto-dropdown%2Ftrunk&old=3068802%40country-state-city-auto-dropdown%2Ftrunk&sfp_email=&sfph_mail=https://www.wordfence.com/threat-intel/vulnerabilities/id/17dcacaf-0e2a-4bef-b944-fb7e43d25777?source=cvehttps://plugins.trac.wordpress.org/browser/country-state-city-auto-dropdown/trunk/includes/ajax-actions.php#L22https://plugins.trac.wordpress.org/browser/country-state-city-auto-dropdown/trunk/includes/ajax-actions.php#L8https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3089374%40country-state-city-auto-dropdown%2Ftrunk&old=3068802%40country-state-city-auto-dropdown%2Ftrunk&sfp_email=&sfph_mail=https://www.wordfence.com/threat-intel/vulnerabilities/id/17dcacaf-0e2a-4bef-b944-fb7e43d25777?source=cve
2024-05-22
Published
Exploited in the wild