-
-
Notifications
You must be signed in to change notification settings - Fork 734
ascanrules: CMDi split timing tests to new scan rule #6551
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
Conversation
Great job, no security vulnerabilities found in this Pull Request |
015bdee
to
faa12c1
Compare
I believe this is ready for review. |
208b798
to
cfb4ce9
Compare
.../ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionScanRule.java
Outdated
Show resolved
Hide resolved
...rules/src/main/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionTimingScanRule.java
Outdated
Show resolved
Hide resolved
...rules/src/main/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionTimingScanRule.java
Outdated
Show resolved
Hide resolved
...c/main/javahelp/org/zaproxy/zap/extension/ascanrules/resources/help/contents/ascanrules.html
Outdated
Show resolved
Hide resolved
...c/test/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionTimingScanRuleUnitTest.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionTimingScanRuleUnitTest.java
Show resolved
Hide resolved
Got all those (I hope). |
...rules/src/main/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionTimingScanRule.java
Outdated
Show resolved
Hide resolved
Signed-off-by: kingthorin <[email protected]>
Done |
Thank you! |
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.
Pull Request Overview
This PR separates the Command Injection scan rule into two distinct scan rules: one feedback-based (retaining ID 90020) and one time-based (assigned new ID 90037). The separation removes timing attack functionality from the original rule and creates a dedicated timing-based rule for better organization and testing coverage.
- Time-based command injection functionality moved to new
CommandInjectionTimingScanRule
with ID 90037 - Original
CommandInjectionScanRule
retained as feedback-based only, keeping ID 90020 - Common test functionality extracted to shared base class
CommandInjectionRuleTest
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
CommandInjectionTimingScanRule.java | New time-based command injection scan rule implementation |
CommandInjectionTimingScanRuleUnitTest.java | Unit tests for the new timing-based scan rule |
CommandInjectionScanRule.java | Refactored to remove timing functionality, keeping only feedback-based detection |
CommandInjectionScanRuleUnitTest.java | Updated tests with timing-related functionality removed |
CommandInjectionRuleTest.java | New abstract base class for shared command injection test functionality |
Messages.properties | Updated message keys to separate feedback and time-based descriptions |
ascanrules.html | Updated help documentation to describe the two separate rules |
CHANGELOG.md | Documented the rule separation |
Comments suppressed due to low confidence (1)
addOns/ascanrules/src/main/javahelp/org/zaproxy/zap/extension/ascanrules/resources/help/contents/ascanrules.html:81
- The filename 'CommandInjectionScaRule.java' appears to be a typo. It should be 'CommandInjectionScanRule.java' based on the actual class name.
Latest code: <a href="https://github.com/zaproxy/zap-extensions/blob/main/addOns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/CommandInjectionTimingScanRule.java">CommandInjectionTimingScanRule.java</a>
Overview
The Remote OS Command Injection scan rule has been broken into two rules; one feedback based, and one time based (Issue 7341). This includes assigning the timing rule ID 90037, and updating the add-on's help content.
Related Issues