-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add vpatch rule for CVE-2024-51567 (#1154)
- Loading branch information
Showing
10 changed files
with
161 additions
and
19 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-51567.yaml | ||
nuclei_template: vpatch-CVE-2024-51567.yaml |
25 changes: 25 additions & 0 deletions
25
.appsec-tests/vpatch-CVE-2024-51567/vpatch-CVE-2024-51567.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,25 @@ | ||
id: vpatch-CVE-2024-51567 | ||
info: | ||
name: vpatch-CVE-2024-51567 | ||
author: crowdsec | ||
severity: info | ||
description: vpatch-CVE-2024-51567 testing | ||
tags: appsec-testing | ||
http: | ||
#this is a dummy request, edit the request(s) to match your needs | ||
- raw: | ||
- | | ||
PUT /dataBases/upgrademysqlstatus HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/json | ||
{ | ||
"statusFile": "/dev/null; whoami > /tmp/id; #" | ||
} | ||
cookie-reuse: true | ||
#test will fail because we won't match http status | ||
matchers: | ||
- type: status | ||
status: | ||
- 403 |
Large diffs are not rendered by default.
Oops, something went wrong.
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,40 @@ | ||
|
||
name: crowdsecurity/vpatch-CVE-2024-51567 | ||
description: "CyberPanel RCE (CVE-2024-51567)" | ||
rules: | ||
- and: | ||
- zones: | ||
- URI | ||
transform: | ||
- lowercase | ||
match: | ||
type: equals | ||
value: /databases/upgrademysqlstatus | ||
- zones: | ||
- METHOD | ||
match: | ||
type: equals | ||
value: PUT | ||
- zones: | ||
- BODY_ARGS | ||
transform: | ||
- lowercase | ||
- urldecode | ||
variables: | ||
- json.statusfile | ||
match: | ||
type: contains | ||
value: ';' | ||
labels: | ||
type: exploit | ||
service: http | ||
confidence: 3 | ||
spoofable: 0 | ||
behavior: "http:exploit" | ||
label: "CyberPanel RCE" | ||
classification: | ||
- cve.CVE-2024-51567 | ||
- attack.T1595 | ||
- attack.T1190 | ||
- cwe.CWE-306 | ||
- cwe.CWE-276 |
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
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
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