.. / CVE-2024-3495

Exploit for WordPress Plugin Country State City Dropdown <= 2.7.2 - Unauthenticated SQL Injection (CVE-2024-3495)

Description:

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 Products:

Proof of Concept

PoC exploits

Nuclei Template

View the template here CVE-2024-3495.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2024/CVE-2024-3495.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/CVE-2024-3495
https://plugins.trac.wordpress.org/browser/country-state-city-auto-dropdown/trunk/includes/ajax-actions.php#L22
https://plugins.trac.wordpress.org/browser/country-state-city-auto-dropdown/trunk/includes/ajax-actions.php#L8
https://sploitus.com/exploit?id=EDF4B3F8-DDF4-5196-A375-EC81B8BC18F1&utm_source=rss&utm_medium=rss
https://github.com/truonghuuphuc/CVE-2024-3495-Poc