-
-
Notifications
You must be signed in to change notification settings - Fork 728
ascanrules: XPath Injection add Custom Payloads support #6465
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
base: main
Are you sure you want to change the base?
Conversation
Great job, no security vulnerabilities found in this Pull Request |
...c/main/javahelp/org/zaproxy/zap/extension/ascanrules/resources/help/contents/ascanrules.html
Outdated
Show resolved
Hide resolved
9243fc4
to
be9bae2
Compare
...ns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/XpathInjectionScanRule.java
Outdated
Show resolved
Hide resolved
...ns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/XpathInjectionScanRule.java
Outdated
Show resolved
Hide resolved
...ns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/XpathInjectionScanRule.java
Outdated
Show resolved
Hide resolved
...ns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/XpathInjectionScanRule.java
Outdated
Show resolved
Hide resolved
...ns/ascanrules/src/main/java/org/zaproxy/zap/extension/ascanrules/XpathInjectionScanRule.java
Outdated
Show resolved
Hide resolved
...s/custompayloads/src/main/java/org/zaproxy/zap/extension/custompayloads/PayloadCategory.java
Show resolved
Hide resolved
...s/custompayloads/src/main/java/org/zaproxy/zap/extension/custompayloads/PayloadCategory.java
Outdated
Show resolved
Hide resolved
return createPayloads(name, payloads, true); | ||
} | ||
|
||
@SuppressWarnings("unused") |
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.
Seems used, it would also be better if lists were not created when they are not needed.
527c821
to
75a1205
Compare
ascanrules - CHANGELOG > Add change note. - ExtensionPayloader > Add appropriate hooks etc. - ExtensionPayloaderUnitTest > Assert hook/unload behavior. - ascanrules.html > Update help entry. - XpathInjectionScanRule > Update functionality to support Custom Payloads. custompayloads: - CHANGELOG > Add note. - PayloadCategory > Add support for adding payloads which are initially disabled. Signed-off-by: kingthorin <[email protected]>
@@ -32,7 +32,7 @@ zapAddOn { | |||
dependencies { | |||
addOns { | |||
register("custompayloads") { | |||
version.set(">= 0.9.0 & < 1.0.0") | |||
version.set(">= 0.15.0 & < 1.0.0") |
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.
Update the existing entry to also mention this add-on, while optional we should not release features that will not work.
return errorProvider; | ||
} | ||
|
||
public static void setPayloadProvider(Supplier<Iterable<String>> provider) { |
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.
Would be good to test this.
} | ||
|
||
List<CustomPayload> defaultPayloads = new ArrayList<>(payloads.size()); | ||
List<CustomPayload> addedPayloads = new ArrayList<>(payloads.size()); |
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.
Why rename this? They are still default payloads. Also, the name createNonDefaultPayloads
is misleading, they are default payloads but disabled. (i.e. defaultPayloads.addAll(createNonDefaultPayloads
why are we adding non-default payloads to the default list?).
Overview
ascanrules
custompayloads:
Related Issues
Checklist
./gradlew spotlessApply
for code formatting