Skip to content

Commit 12eb979

Browse files
committed
Allow MaD sanitizers for java/jndi-injection
1 parent 8e33d2b commit 12eb979

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

java/ql/lib/semmle/code/java/security/JndiInjection.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ private class DefaultJndiInjectionSink extends JndiInjectionSink {
3434
DefaultJndiInjectionSink() { sinkNode(this, "jndi-injection") }
3535
}
3636

37+
private class ExternalJndiInjectionSanitizer extends JndiInjectionSanitizer {
38+
ExternalJndiInjectionSanitizer() { barrierNode(this, "jndi-injection") }
39+
}
40+
3741
/**
3842
* A method that does a JNDI lookup when it receives a specific argument set to `true`.
3943
*/

0 commit comments

Comments
 (0)