diff --git a/.appsec-tests/vpatch-CVE-2024-3495/CVE-2024-3495.yaml b/.appsec-tests/vpatch-CVE-2024-3495/CVE-2024-3495.yaml new file mode 100644 index 00000000000..2d2036c2360 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2024-3495/CVE-2024-3495.yaml @@ -0,0 +1,21 @@ +## autogenerated on 2026-02-25 14:27:50 +id: CVE-2024-3495 +info: + name: CVE-2024-3495 + author: crowdsec + severity: info + description: CVE-2024-3495 testing + tags: appsec-testing +http: + - raw: + - | + POST /wp-admin/admin-ajax.php HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + + action=tc_csca_get_cities&nonce_ajax={{nonce}}&sid=1+or+0+union+select+concat(0x64617461626173653a,(select+md5(999999999)),0x7c76657273696f6e3a,(select+md5(999999999)),0x7c757365723a,user()),2,3--+- + cookie-reuse: true + matchers: + - type: status + status: + - 403 diff --git a/.appsec-tests/vpatch-CVE-2024-3495/config.yaml b/.appsec-tests/vpatch-CVE-2024-3495/config.yaml new file mode 100644 index 00000000000..87682b8170b --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2024-3495/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2026-02-25 14:27:50 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2024-3495.yaml +nuclei_template: CVE-2024-3495.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2024-3495.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2024-3495.yaml new file mode 100644 index 00000000000..353cdd7202c --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2024-3495.yaml @@ -0,0 +1,42 @@ +## autogenerated on 2026-02-25 14:27:50 +name: crowdsecurity/vpatch-CVE-2024-3495 +description: 'Detects SQL injection attempts in Country State City Dropdown CF7 plugin for WordPress via sid and cnt parameters.' +rules: + - and: + - zones: + - URI + transform: + - lowercase + match: + type: contains + value: /wp-admin/admin-ajax.php + - zones: + - BODY_ARGS + variables: + - action + match: + type: equals + value: tc_csca_get_cities + - zones: + - BODY_ARGS + variables: + - sid + - cnt + transform: + - lowercase + - urldecode + match: + type: regex + value: '[^0-9]' + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'Country State City Dropdown CF7 - SQLI' + classification: + - cve.CVE-2024-3495 + - attack.T1190 + - cwe.CWE-89 diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index 76dd7e12251..22386a28f17 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -140,6 +140,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2025-2611 - crowdsecurity/vpatch-CVE-2022-24086 - crowdsecurity/vpatch-CVE-2021-32478 +- crowdsecurity/vpatch-CVE-2024-3495 - crowdsecurity/vpatch-CVE-2021-26072 - crowdsecurity/vpatch-CVE-2025-55748 - crowdsecurity/vpatch-CVE-2022-25322