Skip to content

Conversation

@kingthorin
Copy link
Member

Overview

  • Add change note.
  • Update logging in scan rules.

@thc202 thc202 changed the title ascanrules all: Reduce usage of error level logging Reduce usage of error level logging in ascan rules Aug 6, 2025
@psiinon
Copy link
Member

psiinon commented Aug 6, 2025

Logo
Checkmarx One – Scan Summary & Details9cc3f101-7d6f-4033-9e65-b36a7397777c

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

ex.getClass().getName(),
ex.getMessage(),
msg.getRequestHeader().getURI());
} catch (IOException ex) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception is also caught just below, shall I remove that catch clause?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

scanWithPayloads(param, ATTACK_PATTERNS_CVE45046, PREFIX_CVE45046);
} catch (Exception e) {
LOGGER.error(e.getMessage(), e);
LOGGER.warn(e.getMessage(), e);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OAST

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be too much change, I'm happy to revert this file if wanted.

@kingthorin kingthorin force-pushed the dont-log-at-error branch 4 times, most recently from 5c23602 to 0380908 Compare August 6, 2025 15:37
@kingthorin kingthorin marked this pull request as draft August 7, 2025 01:13
@kingthorin kingthorin marked this pull request as ready for review August 7, 2025 11:50
@kingthorin kingthorin force-pushed the dont-log-at-error branch 2 times, most recently from ee9626c to bdb1f46 Compare September 15, 2025 18:40
@kingthorin kingthorin force-pushed the dont-log-at-error branch 6 times, most recently from 5d62a98 to 7009347 Compare October 24, 2025 15:34
- Add change note.
- Update logging in scan rules.

Signed-off-by: kingthorin <[email protected]>
@thc202 thc202 enabled auto-merge October 24, 2025 15:44
@thc202
Copy link
Member

thc202 commented Oct 24, 2025

Thank you!

@thc202 thc202 merged commit 0672ade into zaproxy:main Oct 24, 2025
9 of 10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2025
@kingthorin kingthorin deleted the dont-log-at-error branch October 24, 2025 16:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants