Skip to content
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

pscanrules/ascanrules: Example Alerts and Alert Refs #4242

Merged
merged 1 commit into from
Nov 22, 2022

Conversation

kingthorin
Copy link
Member

  • CHANGELOGs > Added change notes.
  • Scan rules > Added example alerts handling.
  • UnitTests > Added new unit test to assert the example alerts.
  • InfoSessionIdUrlScanRule > Added alert refs. Removed unused local variable.

Related to zaproxy/zaproxy#6119 & zaproxy/zaproxy#7100

Signed-off-by: kingthorin [email protected]

@kingthorin
Copy link
Member Author

I wanted to tackle something before work today, so this is it 😀

@kingthorin
Copy link
Member Author

Will get them spotlessApplied shortly. If someone is able to review anyway that'd be great.

@kingthorin
Copy link
Member Author

FYI noticed this on one of the recent runs, it's only a warning but might be something to look into:

 Execution optimizations have been disabled for task ':addOns:ascanrulesBeta:compileJava' to ensure correctness due to the following reasons:
  - Gradle detected a problem with the following location: '/home/runner/work/zap-extensions/zap-extensions/addOns/oast/build/classes/java/main'. Reason: Task ':addOns:ascanrulesBeta:compileJava' uses this output of task ':addOns:oast:enhance' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.5.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.
> Task :addOns:ascanrulesBeta:enhance UP-TO-DATE
> Task :addOns:ascanrulesBeta:processResources UP-TO-DATE
> Task :addOns:ascanrulesBeta:classes
> Task :addOns:ascanrulesBeta:compileTestJava
...

@thc202
Copy link
Member

thc202 commented Nov 20, 2022

That's caused by a 3rd-party plugin.

@kingthorin
Copy link
Member Author

I think I've addressed all those.

- CHANGELOGs > Added change notes.
- Scan rules > Added example alerts handling.
- UnitTests > Added new unit test to assert the example alerts.
- InfoSessionIdUrlScanRule > Added alert refs. Removed unused local
variable.

Signed-off-by: kingthorin <[email protected]>
@kingthorin
Copy link
Member Author

Got those too.

@thc202
Copy link
Member

thc202 commented Nov 21, 2022

Thank you!

@psiinon psiinon merged commit 4f0d42b into zaproxy:main Nov 22, 2022
@kingthorin kingthorin deleted the alert-batch1 branch December 23, 2022 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants