-
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 CVE-2024-27956 / CVE-2024-27954 --------- Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Thibault Koechlin <[email protected]>
- Loading branch information
1 parent
98608ec
commit 390a0b3
Showing
9 changed files
with
237 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,5 @@ | ||
|
||
appsec-rules: | ||
- ./appsec-rules/crowdsecurity/base-config.yaml | ||
- ./appsec-rules/crowdsecurity/vpatch-CVE-2024-27954.yaml | ||
nuclei_template: test-CVE-2024-27954.yaml |
19 changes: 19 additions & 0 deletions
19
.appsec-tests/vpatch-CVE-2024-27954/test-CVE-2024-27954.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,19 @@ | ||
|
||
id: test-CVE-2024-27954 | ||
info: | ||
name: test-CVE-2024-27954 | ||
author: crowdsec | ||
severity: info | ||
description: test-CVE-2024-27954 testing | ||
tags: appsec-testing | ||
http: | ||
- raw: | ||
- | | ||
GET /?p=3232&wp_automatic=download&link=file:///etc/passwd HTTP/1.1 | ||
Host: {{Hostname}} | ||
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
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-27956.yaml | ||
nuclei_template: test-CVE-2024-27956.yaml |
20 changes: 20 additions & 0 deletions
20
.appsec-tests/vpatch-CVE-2024-27956/test-CVE-2024-27956.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,20 @@ | ||
id: test-CVE-2024-27956 | ||
info: | ||
name: test-CVE-2024-27956 | ||
author: crowdsec | ||
severity: info | ||
description: test-CVE-2024-27956 testing | ||
tags: appsec-testing | ||
http: | ||
- raw: | ||
- | | ||
POST /wp-content/plugins/wp-automatic/inc/csv.php HTTP/1.1 | ||
Host: {{Hostname}} | ||
Content-Type: application/x-www-form-urlencoded | ||
q=INSERT+INTO+wp_users+%28user_login%2C+user_pass%2C+user_nicename%2C+user_email%2C+user_url%2C+user_registered%2C+user_status%2C+display_name%29+VALUES+%28%27eviladmin%27%2C+%27%24P%24BASbMqW0nlZRux%2F2IhCw7AdvoNI4VT0%27%2C+%27eviladmin%27%2C+%27eviladmin%40gmail.com%27%2C+%27http%3A%2F%2F127.0.0.1%3A8000%27%2C+%272024-04-30+16%3A26%3A43%27%2C+0%2C+%27eviladmin%27%29&auth=%00&integ=09956ea086b172d6cf8ac31de406c4c0 | ||
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,39 @@ | ||
name: crowdsecurity/vpatch-CVE-2024-27954 | ||
description: "WP Automatic - Path Traversal (CVE-2024-27954)" | ||
rules: | ||
- and: | ||
- zones: | ||
- METHOD | ||
match: | ||
type: equals | ||
value: GET | ||
- zones: | ||
- ARGS | ||
variables: | ||
- wp_automatic | ||
transform: | ||
- lowercase | ||
match: | ||
type: equals | ||
value: "download" | ||
- zones: | ||
- ARGS | ||
variables: | ||
- link | ||
transform: | ||
- lowercase | ||
match: | ||
type: startsWith | ||
value: "file://" | ||
labels: | ||
type: exploit | ||
service: http | ||
confidence: 3 | ||
spoofable: 0 | ||
behavior: "http:exploit" | ||
label: "WP Automatic - Path Traversal" | ||
classification: | ||
- cve.CVE-2024-27954 | ||
- attack.T1595 | ||
- attack.T1190 | ||
- cwe.CWE-22 |
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,36 @@ | ||
|
||
name: crowdsecurity/vpatch-CVE-2024-27956 | ||
description: "WordPress Automatic Plugin - SQLi (CVE-2024-27956)" | ||
rules: | ||
- and: | ||
- zones: | ||
- METHOD | ||
match: | ||
type: equals | ||
value: POST | ||
- zones: | ||
- URI | ||
transform: | ||
- lowercase | ||
match: | ||
type: endsWith | ||
value: /wp-content/plugins/wp-automatic/inc/csv.php | ||
- zones: | ||
- BODY_ARGS | ||
variables: | ||
- auth | ||
match: | ||
type: contains | ||
value: "\x00" | ||
labels: | ||
type: exploit | ||
service: http | ||
confidence: 3 | ||
spoofable: 0 | ||
behavior: "http:exploit" | ||
label: "WordPress Automatic Plugin - SQLi" | ||
classification: | ||
- cve.CVE-2024-27956 | ||
- attack.T1595 | ||
- attack.T1190 | ||
- cwe.CWE-502 |
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