@@ -141,17 +141,18 @@ private module Lxml {
141141 // resolve_entities has default True
142142 not exists ( this .getArgByName ( "resolve_entities" ) )
143143 or
144- this .getKeywordParameter ( "resolve_entities" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( True t )
144+ this .getKeywordParameter ( "resolve_entities" ) .getAValueReachingSink ( ) .asExpr ( ) =
145+ any ( True t )
145146 )
146147 or
147148 kind .isXmlBomb ( ) and
148- this .getKeywordParameter ( "huge_tree" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( True t ) and
149- not this .getKeywordParameter ( "resolve_entities" ) .getAValueReachingRhs ( ) .asExpr ( ) =
149+ this .getKeywordParameter ( "huge_tree" ) .getAValueReachingSink ( ) .asExpr ( ) = any ( True t ) and
150+ not this .getKeywordParameter ( "resolve_entities" ) .getAValueReachingSink ( ) .asExpr ( ) =
150151 any ( False t )
151152 or
152153 kind .isDtdRetrieval ( ) and
153- this .getKeywordParameter ( "load_dtd" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( True t ) and
154- this .getKeywordParameter ( "no_network" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( False t )
154+ this .getKeywordParameter ( "load_dtd" ) .getAValueReachingSink ( ) .asExpr ( ) = any ( True t ) and
155+ this .getKeywordParameter ( "no_network" ) .getAValueReachingSink ( ) .asExpr ( ) = any ( False t )
155156 }
156157 }
157158
@@ -318,11 +319,11 @@ private module Lxml {
318319 kind .isXxe ( )
319320 or
320321 kind .isXmlBomb ( ) and
321- this .getKeywordParameter ( "huge_tree" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( True t )
322+ this .getKeywordParameter ( "huge_tree" ) .getAValueReachingSink ( ) .asExpr ( ) = any ( True t )
322323 or
323324 kind .isDtdRetrieval ( ) and
324- this .getKeywordParameter ( "load_dtd" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( True t ) and
325- this .getKeywordParameter ( "no_network" ) .getAValueReachingRhs ( ) .asExpr ( ) = any ( False t )
325+ this .getKeywordParameter ( "load_dtd" ) .getAValueReachingSink ( ) .asExpr ( ) = any ( True t ) and
326+ this .getKeywordParameter ( "no_network" ) .getAValueReachingSink ( ) .asExpr ( ) = any ( False t )
326327 }
327328
328329 override predicate mayExecuteInput ( ) { none ( ) }
0 commit comments