-
Notifications
You must be signed in to change notification settings - Fork 3
Log-injection improvements #89
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
Conversation
knewbury01
left a comment
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.
@mbaluda nice work! just a few small comments/questions at this point
|
|
||
| const LOG = cds.log("nodejs"); | ||
| LOG.info("test" + book); | ||
| LOG.info("test" + book); // Log injection alert |
Check failure
Code scanning / CodeQL
Uncontrolled data in logging call
| this.on('format', (req) => { | ||
| const cds2 = require ('@sap/cds/lib') | ||
| const LOG = cds2.log('cds.log') | ||
| const $ = req.data; LOG.info('format:', $) // Log injection alert |
Check failure
Code scanning / CodeQL
Uncontrolled data in logging call
knewbury01
left a comment
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.
only one very tiny change! other than that looks great! @mbaluda
Co-authored-by: Kristen Newbury <[email protected]>
knewbury01
left a comment
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.
LGTM! ![]()
beforeandafter.SAP-samples/cloud-cap-samples.