From 2bbf08be3654bde3676393c9efd4a531ad3b6532 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:24:51 +0200 Subject: [PATCH 1/5] Add vpatch-CVE-2025-34035 rule --- .../crowdsecurity/vpatch-CVE-2025-34035.yaml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml new file mode 100644 index 00000000000..e08f20b294d --- /dev/null +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml @@ -0,0 +1,35 @@ +## autogenerated on 2026-04-15 13:24:48 +name: crowdsecurity/vpatch-CVE-2025-34035 +description: 'Detects OS command injection in EnGenius EnShare Cloud Service via path parameter in usbinteract.cgi.' +rules: + - and: + - zones: + - URI + transform: + - lowercase + - urldecode + match: + type: contains + value: /usbinteract.cgi + - zones: + - BODY_ARGS + variables: + - path + transform: + - lowercase + - urldecode + match: + type: contains + value: '|' + +labels: + type: exploit + service: http + confidence: 3 + spoofable: 0 + behavior: 'http:exploit' + label: 'EnGenius EnShare - RCE' + classification: + - cve.CVE-2025-34035 + - attack.T1190 + - cwe.CWE-78 From bd976e5f8df24ee3687a0f7dabe68506573694c8 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:24:53 +0200 Subject: [PATCH 2/5] Add vpatch-CVE-2025-34035 test config --- .appsec-tests/vpatch-CVE-2025-34035/config.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .appsec-tests/vpatch-CVE-2025-34035/config.yaml diff --git a/.appsec-tests/vpatch-CVE-2025-34035/config.yaml b/.appsec-tests/vpatch-CVE-2025-34035/config.yaml new file mode 100644 index 00000000000..7f095faaf96 --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2025-34035/config.yaml @@ -0,0 +1,5 @@ +## autogenerated on 2026-04-15 13:24:48 +appsec-rules: + - ./appsec-rules/crowdsecurity/base-config.yaml + - ./appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml +nuclei_template: CVE-2025-34035.yaml From 00ec87e027f1850a64f4146c81a000b7c2f87e63 Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:24:55 +0200 Subject: [PATCH 3/5] Add CVE-2025-34035.yaml test --- .../vpatch-CVE-2025-34035/CVE-2025-34035.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .appsec-tests/vpatch-CVE-2025-34035/CVE-2025-34035.yaml diff --git a/.appsec-tests/vpatch-CVE-2025-34035/CVE-2025-34035.yaml b/.appsec-tests/vpatch-CVE-2025-34035/CVE-2025-34035.yaml new file mode 100644 index 00000000000..f7aeaf8392b --- /dev/null +++ b/.appsec-tests/vpatch-CVE-2025-34035/CVE-2025-34035.yaml @@ -0,0 +1,21 @@ +## autogenerated on 2026-04-15 13:24:48 +id: CVE-2025-34035 +info: + name: CVE-2025-34035 + author: crowdsec + severity: info + description: CVE-2025-34035 testing + tags: appsec-testing +http: + - raw: + - | + POST /web/cgi-bin/usbinteract.cgi HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + + action=7&path="|id||" + cookie-reuse: true + matchers: + - type: status + status: + - 403 From 28130a5bb9828e2966e503e232945a832a941b1a Mon Sep 17 00:00:00 2001 From: crowdsec-automation <63358111+crowdsec-automation@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:24:57 +0200 Subject: [PATCH 4/5] Add vpatch-CVE-2025-34035 rule to vpatch collection --- collections/crowdsecurity/appsec-virtual-patching.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/collections/crowdsecurity/appsec-virtual-patching.yaml b/collections/crowdsecurity/appsec-virtual-patching.yaml index 7ccf9a8bf03..4664dcce57f 100644 --- a/collections/crowdsecurity/appsec-virtual-patching.yaml +++ b/collections/crowdsecurity/appsec-virtual-patching.yaml @@ -25,6 +25,7 @@ appsec-rules: - crowdsecurity/vpatch-CVE-2021-3129 - crowdsecurity/vpatch-CVE-2024-8911 - crowdsecurity/vpatch-CVE-2021-22941 +- crowdsecurity/vpatch-CVE-2025-34035 - crowdsecurity/vpatch-CVE-2019-12989 - crowdsecurity/vpatch-CVE-2022-44877 - crowdsecurity/vpatch-CVE-2018-10562 From b99d80bc206a2a550f4f429cd80c20eb95b9285b Mon Sep 17 00:00:00 2001 From: he2ss Date: Wed, 15 Apr 2026 16:16:15 +0200 Subject: [PATCH 5/5] fix rule --- appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml b/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml index e08f20b294d..4427cadfee2 100644 --- a/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml +++ b/appsec-rules/crowdsecurity/vpatch-CVE-2025-34035.yaml @@ -19,8 +19,8 @@ rules: - lowercase - urldecode match: - type: contains - value: '|' + type: regex + value: '[^a-z0-9_/.-]' labels: type: exploit