File tree Expand file tree Collapse file tree
lib/semmle/python/frameworks
test/library-tests/frameworks/yaml Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010private import python
1111private import semmle.python.dataflow.new.DataFlow
12- private import semmle.python.dataflow.new.RemoteFlowSources
1312private import semmle.python.Concepts
1413private import semmle.python.ApiGraphs
1514
@@ -63,7 +62,7 @@ private module Yaml {
6362 )
6463 }
6564
66- override DataFlow:: Node getAnInput ( ) { result = this .getArg ( 0 ) }
65+ override DataFlow:: Node getAnInput ( ) { result in [ this .getArg ( 0 ) , this . getArgByName ( "stream" ) ] }
6766
6867 override DataFlow:: Node getOutput ( ) { result = this }
6968
Original file line number Diff line number Diff line change 22
33# Unsafe:
44yaml .load (payload ) # $decodeInput=payload decodeOutput=yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
5+ yaml .load (stream = payload ) # $decodeInput=payload decodeOutput=yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
56yaml .load (payload , yaml .Loader ) # $decodeInput=payload decodeOutput=yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
67yaml .unsafe_load (payload ) # $ decodeInput=payload decodeOutput=yaml.unsafe_load(..) decodeFormat=YAML decodeMayExecuteInput
78yaml .full_load (payload ) # $ decodeInput=payload decodeOutput=yaml.full_load(..) decodeFormat=YAML decodeMayExecuteInput
You can’t perform that action at this time.
0 commit comments