-
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.
- Loading branch information
Showing
5 changed files
with
67 additions
and
0 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 |
20 changes: 20 additions & 0 deletions
20
.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,20 @@ | ||
|
||
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,40 @@ | ||
|
||
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
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