Add vpatch-CVE-2025-27222 rule and test #1528
Open
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 path traversal (LFI) attempts in TRUfusion Enterprise's getCobrandingData endpoint. The detection is based on two conditions:
/trufusionportal/getcobrandingdata
(case-insensitive, normalized).cobrandingImageName
argument in the query string must contain the sequence../
(after URL decoding and lowercasing), which is a strong indicator of a path traversal attempt.This approach minimizes false positives by:
lowercase
andurldecode
transforms to ensure normalization and case insensitivity.The test configuration uses the original nuclei template's request, but expects a 403 response to confirm the WAF rule is working. All
value:
fields are lowercase, and the rule usescontains
for matching as per best practices. No regex is used where a simple substring match suffices.