-
-
Notifications
You must be signed in to change notification settings - Fork 749
ascanrules: Enhanced CommandInjectionScanRule with URL-encoded bypass… #6542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cx-nir-cohen
wants to merge
12
commits into
main
Choose a base branch
from
enhance-command-injection-detection
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ac23476
ascanrules: Enhanced CommandInjectionScanRule with URL-encoded bypass…
cx-nir-cohen b2e2da0
Fix: Restore critical null byte payloads that were accidentally removed
cx-nir-cohen 2284a11
Fix: Remove duplicate insertedCMD variable declaration
cx-nir-cohen 18b147f
Fix: Apply Spotless code formatting
cx-nir-cohen 0b57487
Fix: Update max requests per param limits for new payloads
cx-nir-cohen dedfa94
Clean up: Remove unnecessary comments from test code
cx-nir-cohen f7b7a28
Enhance CommandInjectionScanRule for VulnerableApp detection
cx-nir-cohen 541c166
Clean up code: combine adaptive timeout calculation and remove excess…
cx-nir-cohen 4e5cc95
Enhance CommandInjectionScanRule with optimized payload strategy
cx-nir-cohen b001509
Update CommandInjectionScanRuleUnitTest with refined request expectat…
cx-nir-cohen 535cfb2
Apply spotless code formatting to CommandInjectionScanRule
cx-nir-cohen 567b8eb
Add JavaDoc documentation to testCommandInjection method
cx-nir-cohen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are significant increases to a rule which is already sending "too many" requests 😦
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, agree, i just understood this function too late, what is your suggestion here?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cutting it down to just the best payloads which give us the widest coverage against real world apps 😁
Also, I think WAF bypass techniques could potentially apply to all rules, so it would be better to look at that as a separate enhancement, rather than adding them to each rule..