diff --git a/.appsec-tests/vpatch-CVE-2024-5057/CVE-2024-5057.yaml b/.appsec-tests/vpatch-CVE-2024-5057/CVE-2024-5057.yaml new file mode 100644 index 00000000000..f8a6b530e00 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2024-5057/CVE-2024-5057.yaml @@ -0,0 +1,18 @@ +## autogenerated on 2026-01-14 14:58:55 +id: CVE-2024-5057 +info: + name: CVE-2024-5057 + author: crowdsec + severity: info + description: CVE-2024-5057 testing + tags: appsec-testing +http: + - raw: + - | + GET /wp-admin/admin-ajax.php?action=edd_download_search&s=a')/**/AND/**/SLEEP(6)%23 HTTP/1.1 + Host: {{Hostname}} + cookie-reuse: true + matchers: + - type: status + status: + - 403 diff --git a/.appsec-tests/vpatch-CVE-2024-5057/config.yaml b/.appsec-tests/vpatch-CVE-2024-5057/config.yaml new file mode 100644 index 00000000000..70fa8869136 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2024-5057/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2026-01-14 14:58:55 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2024-5057.yaml +nuclei_template: CVE-2024-5057.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2024-5057.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2024-5057.yaml new file mode 100644 index 00000000000..0cb4ce7a532 --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2024-5057.yaml @@ -0,0 +1,45 @@ +## autogenerated on 2026-01-14 14:58:55 +name: crowdsecurity/vpatch-CVE-2024-5057 +description: 'Detects SQL injection vulnerability in WordPress Easy Digital Downloads <= 3.2.12 via the edd_download_search action.' +rules: + - and: + - zones: + - URI + transform: + - lowercase + - urldecode + match: + type: contains + value: /wp-admin/admin-ajax.php + - zones: + - ARGS + variables: + - action + transform: + - lowercase + - urldecode + match: + type: equals + value: edd_download_search + - zones: + - ARGS + variables: + - s + transform: + - lowercase + - urldecode + match: + type: contains + value: "'" + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'Easy Digital Downloads - SQLI' + classification: + - cve.CVE-2024-5057 + - attack.T1190 + - cwe.CWE-89 diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index 3cf73e7d731..e7c31b0fe45 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -38,6 +38,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2023-46805 - crowdsecurity/vpatch-CVE-2024-23897 - crowdsecurity/vpatch-CVE-2023-22527 +- crowdsecurity/vpatch-CVE-2024-5057 - crowdsecurity/vpatch-CVE-2023-35078 - crowdsecurity/vpatch-CVE-2023-35082 - crowdsecurity/vpatch-CVE-2022-22954