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 & Details75e645ec-68b6-4739-9e72-159bc4e16838

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

@@ -382,7 +382,7 @@ private void sendPayloadsToMakeCallBack(String paramName, String[] commandExecPa
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?

@@ -156,7 +156,7 @@ public void scan(HttpMessage msg, String param, String value) {
scanWithPayloads(param, ATTACK_PATTERNS_CVE44228, PREFIX_CVE44228);
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
- Add change note.
- Update logging in scan rules.

Signed-off-by: kingthorin <[email protected]>
# Conflicts:
#	addOns/ascanrules/CHANGELOG.md
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.

2 participants