File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
semmle/code/java/security Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ category : minorAnalysis
3
+ ---
4
+ * Added the extensible abstract class ` JndiInjectionSanitizer ` . Now this class can be extended to add more sanitizers to the ` java/jndi-injection ` query.
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ private import semmle.code.java.frameworks.SpringLdap
9
9
/** A data flow sink for unvalidated user input that is used in JNDI lookup. */
10
10
abstract class JndiInjectionSink extends DataFlow:: Node { }
11
11
12
+ /** A sanitizer for JNDI injection vulnerabilities. */
13
+ abstract class JndiInjectionSanitizer extends DataFlow:: Node { }
14
+
12
15
/**
13
16
* A unit class for adding additional taint steps.
14
17
*
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ class JndiInjectionFlowConfig extends TaintTracking::Configuration {
17
17
override predicate isSink ( DataFlow:: Node sink ) { sink instanceof JndiInjectionSink }
18
18
19
19
override predicate isSanitizer ( DataFlow:: Node node ) {
20
- node .getType ( ) instanceof PrimitiveType or node . getType ( ) instanceof BoxedType
21
- or
20
+ node .getType ( ) instanceof PrimitiveType or
21
+ node . getType ( ) instanceof BoxedType or
22
22
node instanceof JndiInjectionSanitizer
23
23
}
24
24
@@ -27,12 +27,6 @@ class JndiInjectionFlowConfig extends TaintTracking::Configuration {
27
27
}
28
28
}
29
29
30
- /**
31
- * A Class to be extended for Sanitizer Customizations
32
- */
33
-
34
- abstract class JndiInjectionSanitizer extends DataFlow:: Node { }
35
-
36
30
/**
37
31
* A method that does a JNDI lookup when it receives a `SearchControls` argument with `setReturningObjFlag` = `true`
38
32
*/
You can’t perform that action at this time.
0 commit comments