File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/semmle/python/frameworks
test/library-tests/frameworks/yaml Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
private import python
11
11
private import semmle.python.dataflow.new.DataFlow
12
- private import semmle.python.dataflow.new.RemoteFlowSources
13
12
private import semmle.python.Concepts
14
13
private import semmle.python.ApiGraphs
15
14
@@ -63,7 +62,7 @@ private module Yaml {
63
62
)
64
63
}
65
64
66
- override DataFlow:: Node getAnInput ( ) { result = this .getArg ( 0 ) }
65
+ override DataFlow:: Node getAnInput ( ) { result in [ this .getArg ( 0 ) , this . getArgByName ( "stream" ) ] }
67
66
68
67
override DataFlow:: Node getOutput ( ) { result = this }
69
68
Original file line number Diff line number Diff line change 2
2
3
3
# Unsafe:
4
4
yaml .load (payload ) # $decodeInput=payload decodeOutput=yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
5
+ yaml .load (stream = payload ) # $decodeInput=payload decodeOutput=yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
5
6
yaml .load (payload , yaml .Loader ) # $decodeInput=payload decodeOutput=yaml.load(..) decodeFormat=YAML decodeMayExecuteInput
6
7
yaml .unsafe_load (payload ) # $ decodeInput=payload decodeOutput=yaml.unsafe_load(..) decodeFormat=YAML decodeMayExecuteInput
7
8
yaml .full_load (payload ) # $ decodeInput=payload decodeOutput=yaml.full_load(..) decodeFormat=YAML decodeMayExecuteInput
You can’t perform that action at this time.
0 commit comments