-
Notifications
You must be signed in to change notification settings - Fork 2
Add sensitive exposure split query #207
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
base: main
Are you sure you want to change the base?
Conversation
Can we rename the |
|
||
## Examples | ||
|
||
This CAP service directly logs the sensitive information. |
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.
Can you add more details to how this vulnerability can be exploited?
|
||
## Recommendation | ||
|
||
CAP applications should not log sensitive information. |
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.
I think it'd be great to add some examples of sensitive information and ways to mitigate it.
override predicate isSource(DataFlow::Node source) { source instanceof CleartextLogging::Source } | ||
|
||
override predicate isSink(DataFlow::Node sink) { sink instanceof CdsLogSink } |
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.
Add an appropriate sanitizer definition (either from CAP or predefined) and add a test case that uses such sanitizer.
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.
First round of thoughts.
What This PR Contributes
js/cap-sensitive-log
query (to avoid duplications) but does use the CAP specific sinks and therefore also avoids duplication of alerts with the out of the box query.Future Works
none at this time