File tree Expand file tree Collapse file tree
java/ql/src/semmle/code/java/security Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ class SetPolymorphicTypeValidatorSource extends DataFlow::ExprNode {
8585 m .getDeclaringType ( ) instanceof MapperBuilder and
8686 m .hasName ( "polymorphicTypeValidator" )
8787 ) and
88- this .asExpr ( ) = [ q , q . ( VarAccess ) . getVariable ( ) . getAnAccess ( ) ]
88+ this .asExpr ( ) = q
8989 )
9090 }
9191}
@@ -185,8 +185,7 @@ class EnabledJacksonDefaultTyping extends DataFlow2::Configuration {
185185 EnabledJacksonDefaultTyping ( ) { this = "EnabledJacksonDefaultTyping" }
186186
187187 override predicate isSource ( DataFlow:: Node src ) {
188- any ( EnableJacksonDefaultTyping ma ) .getQualifier ( ) .( VarAccess ) .getVariable ( ) .getAnAccess ( ) =
189- src .asExpr ( )
188+ any ( EnableJacksonDefaultTyping ma ) .getQualifier ( ) = src .asExpr ( )
190189 }
191190
192191 override predicate isSink ( DataFlow:: Node sink ) { sink instanceof ObjectMapperReadSink }
@@ -212,7 +211,7 @@ class SafeObjectMapper extends DataFlow2::Configuration {
212211 .( RefType )
213212 .hasQualifiedName ( "com.fasterxml.jackson.databind.json" ,
214213 [ "JsonMapper$Builder" , "JsonMapper" ] ) and
215- fromNode .asExpr ( ) = [ q , q . ( VarAccess ) . getVariable ( ) . getAnAccess ( ) ] and
214+ fromNode .asExpr ( ) = q and
216215 ma = toNode .asExpr ( )
217216 )
218217 }
You can’t perform that action at this time.
0 commit comments