-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
254 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
appsec-rules: | ||
- ./appsec-rules/crowdsecurity/base-config.yaml | ||
- ./appsec-rules/crowdsecurity/vpatch-CVE-2024-51378.yaml | ||
nuclei_template: vpatch-CVE-2024-51378.yaml |
30 changes: 30 additions & 0 deletions
30
.appsec-tests/vpatch-CVE-2024-51378/vpatch-CVE-2024-51378.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
id: vpatch-CVE-2024-51378 | ||
info: | ||
name: vpatch-CVE-2024-51378 | ||
author: crowdsec | ||
severity: info | ||
description: vpatch-CVE-2024-51378 testing | ||
tags: appsec-testing | ||
http: | ||
#this is a dummy request, edit the request(s) to match your needs | ||
- raw: | ||
- | | ||
POST /dns/getresetstatus HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/json | ||
{"statusfile": "; id > /tmp/id;#"} | ||
- | | ||
POST /ftp/getresetstatus HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/json | ||
{"statusfile": "; id > /tmp/id;#"} | ||
cookie-reuse: true | ||
#test will fail because we won't match http status | ||
matchers: | ||
- type: dsl | ||
condition: and | ||
dsl: | ||
- 'status_code_1 == 403' | ||
- 'status_code_2 == 403' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
appsec-rules: | ||
- ./appsec-rules/crowdsecurity/base-config.yaml | ||
- ./appsec-rules/crowdsecurity/vpatch-CVE-2024-9465.yaml | ||
nuclei_template: test-CVE-2024-9465.yaml |
24 changes: 24 additions & 0 deletions
24
.appsec-tests/vpatch-CVE-2024-9465/test-CVE-2024-9465.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
id: test-CVE-2024-9465 | ||
info: | ||
name: test-CVE-2024-9465 | ||
author: crowdsec | ||
severity: info | ||
description: test-CVE-2024-9465 testing | ||
tags: appsec-testing | ||
http: | ||
- raw: | ||
- | | ||
POST /bin/configurations/parsers/Checkpoint/CHECKPOINT.php HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/x-www-form-urlencoded | ||
action=import&type=test&project=pandbRBAC&signatureid=1%20AND%20(SELECT%201234%20FROM%20(SELECT(SLEEP(6)))test) | ||
cookie-reuse: true | ||
matchers: | ||
- type: dsl | ||
condition: and | ||
dsl: | ||
- "status_code_1 == 403" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: crowdsecurity/vpatch-CVE-2024-51378 | ||
description: "Cyberpanel - RCE (CVE-2024-51378)" | ||
rules: | ||
- and: | ||
- zones: | ||
- METHOD | ||
match: | ||
type: equals | ||
value: POST | ||
- zones: | ||
- URI | ||
transform: | ||
- lowercase | ||
match: | ||
type: regex | ||
value: /(dns|ftp)/getresetstatus | ||
- zones: | ||
- BODY_ARGS | ||
variables: | ||
- json.statusfile | ||
match: | ||
type: regex | ||
value: "[^a-zA-Z0-9/]" | ||
labels: | ||
type: exploit | ||
service: http | ||
confidence: 3 | ||
spoofable: 0 | ||
behavior: "http:exploit" | ||
label: "Cyberpanel - RCE" | ||
classification: | ||
- cve.CVE-2024-51378 | ||
- attack.T1595 | ||
- attack.T1190 | ||
- cwe.CWE-78 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
name: crowdsecurity/vpatch-CVE-2024-9465 | ||
description: "Palo Alto Expedition - SQL Injection (CVE-2024-9465)" | ||
rules: | ||
- and: | ||
- zones: | ||
- METHOD | ||
match: | ||
type: equals | ||
value: POST | ||
- zones: | ||
- URI | ||
transform: | ||
- lowercase | ||
- urldecode | ||
match: | ||
type: contains | ||
value: "/bin/configurations/parsers/checkpoint/checkpoint.php" | ||
- zones: | ||
- BODY_ARGS | ||
variables: | ||
- signatureid | ||
transform: | ||
- urldecode | ||
match: | ||
type: regex | ||
value: "[^a-zA-Z0-9]" | ||
labels: | ||
type: exploit | ||
service: http | ||
confidence: 3 | ||
spoofable: 0 | ||
behavior: "http:exploit" | ||
label: "Palo Alto Expedition - SQL Injection" | ||
classification: | ||
- cve.CVE-2024-9465 | ||
- attack.T1595 | ||
- attack.T1190 | ||
- cwe.CWE-89 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters