Add vpatch-CVE-2024-38653 rule and test #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This rule detects exploitation attempts of the Ivanti Avalanche SmartDeviceServer XXE vulnerability (CVE-2024-38653). The detection logic is as follows:
/mdm/checkin
, as this is the vulnerable endpoint.Content-Type
header must containapplication/xml
, indicating an XML payload is being sent.<!doctype
(case-insensitive), which is a strong indicator of an XML External Entity (XXE) attack, as XXE payloads require a DOCTYPE declaration.The rule uses
lowercase
transformation for all relevant fields to ensure case-insensitive matching and minimize false negatives. The matchers are chosen to be as specific as possible to the exploit pattern, reducing the risk of false positives. No regex or complex logic is used, and all values are in lowercase as required. The test config and nuclei test template are adapted to expect a 403 response, as per the guidelines.Exploit URL: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-38653.yaml