Skip to content

Commit f83c103

Browse files
crowdsec-automationAlteredCoderbuixor
authored
Add vpatch-CVE-2021-34427 rule and test (#1608)
* Add vpatch-CVE-2021-34427 rule * Add vpatch-CVE-2021-34427 test config * Add CVE-2021-34427.yaml test * Add vpatch-CVE-2021-34427 rule to vpatch collection --------- Co-authored-by: AlteredCoder <[email protected]> Co-authored-by: Thibault "bui" Koechlin <[email protected]>
1 parent 71e228d commit f83c103

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## autogenerated on 2025-12-17 14:59:35
2+
id: CVE-2021-34427
3+
info:
4+
name: CVE-2021-34427
5+
author: crowdsec
6+
severity: info
7+
description: CVE-2021-34427 testing
8+
tags: appsec-testing
9+
http:
10+
- raw:
11+
- |
12+
GET /document?__report=test.rptdesign&sample=%3C%25out.println(%22testfingerprint%22)%3B%25%3E&__document=./test/testfile.jsp/. HTTP/1.1
13+
Host: {{Hostname}}
14+
15+
- |
16+
GET /test/testfile.jsp HTTP/1.1
17+
Host: {{Hostname}}
18+
19+
cookie-reuse: true
20+
matchers:
21+
- type: status
22+
status:
23+
- 403
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## autogenerated on 2025-12-17 14:59:35
2+
appsec-rules:
3+
- ./appsec-rules/crowdsecurity/base-config.yaml
4+
- ./appsec-rules/crowdsecurity/vpatch-CVE-2021-34427.yaml
5+
nuclei_template: CVE-2021-34427.yaml
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## autogenerated on 2025-12-17 14:59:35
2+
name: crowdsecurity/vpatch-CVE-2021-34427
3+
description: 'Detects JSP injection leading to remote code execution in Eclipse BIRT Viewer via crafted query parameters.'
4+
rules:
5+
- and:
6+
- zones:
7+
- URI
8+
transform:
9+
- lowercase
10+
- urldecode
11+
match:
12+
type: contains
13+
value: '/document'
14+
- zones:
15+
- ARGS
16+
variables:
17+
- __document
18+
transform:
19+
- lowercase
20+
- urldecode
21+
match:
22+
type: contains
23+
value: '.jsp/.'
24+
- zones:
25+
- ARGS
26+
variables:
27+
- sample
28+
transform:
29+
- lowercase
30+
- urldecode
31+
match:
32+
type: contains
33+
value: '<%'
34+
35+
labels:
36+
type: exploit
37+
service: http
38+
confidence: 3
39+
spoofable: 0
40+
behavior: 'http:exploit'
41+
label: 'Eclipse BIRT - RCE'
42+
classification:
43+
- cve.CVE-2021-34427
44+
- attack.T1190
45+
- cwe.CWE-434

collections/crowdsecurity/appsec-virtual-patching.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ appsec-rules:
141141
- crowdsecurity/vpatch-CVE-2020-10987
142142
- crowdsecurity/vpatch-CVE-2025-55182
143143
- crowdsecurity/vpatch-CVE-2024-6235
144+
- crowdsecurity/vpatch-CVE-2021-34427
144145
- crowdsecurity/vpatch-CVE-2018-13317
145146
- crowdsecurity/vpatch-CVE-2025-9316
146147
- crowdsecurity/vpatch-CVE-2025-11700

0 commit comments

Comments
 (0)