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

normalize whitespace in log messages outputting user-provided parameters #418

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

alexdunnjpl
Copy link
Contributor

🗒️ Summary

Applies StringUtils.normalizeSpace() to user-provided values when echoed to log output, to address CRLF injection concerns.

There's probably a way of configuring the logger to perform this automatically, but we're running quick and dirty today, lads.

⚙️ Test Data and/or Report

n/a

♻️ Related Issues

Fixes #388

Copy link
Member

@tloubrieu-jpl tloubrieu-jpl left a comment

Choose a reason for hiding this comment

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

A minor change requested if this is the answer to my comment of the code.

@alexdunnjpl alexdunnjpl merged commit 589bfa3 into main Mar 7, 2024
2 checks passed
@alexdunnjpl alexdunnjpl deleted the 388-logging-user-input-scrubbing branch March 7, 2024 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insufficient scrubbing of user input values prior to logging
2 participants