diff --git a/.appsec-tests/vpatch-CVE-2024-20404/CVE-2024-20404.yaml b/.appsec-tests/vpatch-CVE-2024-20404/CVE-2024-20404.yaml new file mode 100644 index 00000000000..bbb2c335781 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2024-20404/CVE-2024-20404.yaml @@ -0,0 +1,20 @@ +## autogenerated on 2025-12-10 15:15:31 +id: CVE-2024-20404 +info: + name: CVE-2024-20404 + author: crowdsec + severity: info + description: CVE-2024-20404 testing + tags: appsec-testing +http: + - raw: + - | + POST /gadgets/metadata HTTP/1.1 + Host: {{Hostname}} + + {"context":{"container":"default","language":"en","country":"US","locale":"en_US"},"gadgets":[{"url":"http://interactsh-url"}]} + cookie-reuse: true + matchers: + - type: status + status: + - 403 diff --git a/.appsec-tests/vpatch-CVE-2024-20404/config.yaml b/.appsec-tests/vpatch-CVE-2024-20404/config.yaml new file mode 100644 index 00000000000..8c81db2e22b --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2024-20404/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2025-12-10 15:15:31 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2024-20404.yaml +nuclei_template: CVE-2024-20404.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2024-20404.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2024-20404.yaml new file mode 100644 index 00000000000..3d3f927f227 --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2024-20404.yaml @@ -0,0 +1,33 @@ +## autogenerated on 2025-12-10 15:15:31 +name: crowdsecurity/vpatch-CVE-2024-20404 +description: 'Detects SSRF attempts in Cisco Finesse via crafted POST to /gadgets/metadata with external URL in gadgets.url' +rules: + - and: + - zones: + - URI + transform: + - lowercase + match: + type: equals + value: /gadgets/metadata + - zones: + - BODY_ARGS + variables: + - json.gadgets[0].url + transform: + - lowercase + match: + type: contains + value: 'http://' + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'Cisco Finesse - SSRF' + classification: + - cve.CVE-2024-20404 + - attack.T1190 + - cwe.CWE-918 diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index 70fea496aeb..91dac6fae99 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -141,6 +141,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2020-10987 - crowdsecurity/vpatch-CVE-2025-55182 - crowdsecurity/vpatch-CVE-2024-6235 +- crowdsecurity/vpatch-CVE-2024-20404 author: crowdsecurity contexts: - crowdsecurity/appsec_base