diff --git a/.appsec-tests/vpatch-CVE-2022-0434/CVE-2022-0434.yaml b/.appsec-tests/vpatch-CVE-2022-0434/CVE-2022-0434.yaml new file mode 100644 index 00000000000..17bcab75243 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2022-0434/CVE-2022-0434.yaml @@ -0,0 +1,18 @@ +## autogenerated on 2025-11-26 15:04:42 +id: CVE-2022-0434 +info: + name: CVE-2022-0434 + author: crowdsec + severity: info + description: CVE-2022-0434 testing + tags: appsec-testing +http: + - raw: + - | + GET /?rest_route=/pvc/v1/increase/1&post_ids=0)%20union%20select%20md5(999999999),null,null%20--%20g HTTP/1.1 + Host: {{Hostname}} + cookie-reuse: true + matchers: + - type: status + status: + - 403 diff --git a/.appsec-tests/vpatch-CVE-2022-0434/config.yaml b/.appsec-tests/vpatch-CVE-2022-0434/config.yaml new file mode 100644 index 00000000000..f7b135e3d6a --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2022-0434/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2025-11-26 15:04:42 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2022-0434.yaml +nuclei_template: CVE-2022-0434.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2022-0434.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2022-0434.yaml new file mode 100644 index 00000000000..73e7cc86d89 --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2022-0434.yaml @@ -0,0 +1,35 @@ +## autogenerated on 2025-11-26 15:04:42 +name: crowdsecurity/vpatch-CVE-2022-0434 +description: 'Detects SQL injection in WordPress Page Views Count plugin via post_ids parameter in REST endpoint.' +rules: + - and: + - zones: + - URI + transform: + - lowercase + - urldecode + match: + type: contains + value: '/?rest_route=/pvc/v1/increase/' + - zones: + - ARGS + variables: + - post_ids + transform: + - lowercase + - urldecode + match: + type: contains + value: ') union select ' + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'WordPress Page Views Count - SQLI' + classification: + - cve.CVE-2022-0434 + - attack.T1190 + - cwe.CWE-89 diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index 3356baa0fb6..d24d9a1aa53 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -138,6 +138,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2020-8656 - crowdsecurity/vpatch-CVE-2025-27222 - crowdsecurity/vpatch-CVE-2025-64446 +- crowdsecurity/vpatch-CVE-2022-0434 - crowdsecurity/vpatch-CVE-2020-10987 - crowdsecurity/vpatch-CVE-2025-55182 - crowdsecurity/vpatch-CVE-2024-6235