File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ private class DefaultLogInjectionSink extends LogInjectionSink {
3636private class DefaultLogInjectionSanitizer extends LogInjectionSanitizer instanceof SimpleTypeSanitizer
3737{ }
3838
39+ private class ExternalLogInjectionSanitizer extends LogInjectionSanitizer {
40+ ExternalLogInjectionSanitizer ( ) { barrierNode ( this , "log-injection" ) }
41+ }
42+
3943private class LineBreaksLogInjectionSanitizer extends LogInjectionSanitizer {
4044 LineBreaksLogInjectionSanitizer ( ) {
4145 logInjectionSanitizer ( this .asExpr ( ) )
Original file line number Diff line number Diff line change @@ -120,6 +120,10 @@ private class DefaultSensitiveLoggerBarrier extends SensitiveLoggerBarrier {
120120 }
121121}
122122
123+ private class ExternalSensitiveLoggerBarrier extends SensitiveLoggerBarrier {
124+ ExternalSensitiveLoggerBarrier ( ) { barrierNode ( this , "log-injection" ) }
125+ }
126+
123127/** A data-flow configuration for identifying potentially-sensitive data flowing to a log output. */
124128module SensitiveLoggerConfig implements DataFlow:: ConfigSig {
125129 predicate isSource ( DataFlow:: Node source ) { source instanceof SensitiveLoggerSource }
You can’t perform that action at this time.
0 commit comments