File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
python/ql/src/experimental/Security Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,25 @@ class UnsafeUnpackingConfig extends TaintTracking::Configuration {
29
29
.getACall ( )
30
30
)
31
31
or
32
- // A source catching an S3 filename download
32
+ // A source catching an S3 file download
33
33
// see boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.download_file
34
34
source =
35
35
API:: moduleImport ( "boto3" )
36
36
.getMember ( "client" )
37
37
.getReturn ( )
38
- .getMember ( "download_file" )
38
+ .getMember ( [ "download_file" , "download_fileobj" ] )
39
+ .getACall ( )
40
+ .getArg ( 2 )
41
+ or
42
+ // A source catching an S3 file download
43
+ // see boto3: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html
44
+ source =
45
+ API:: moduleImport ( "boto3" )
46
+ .getMember ( "Session" )
47
+ .getReturn ( )
48
+ .getMember ( "client" )
49
+ .getReturn ( )
50
+ .getMember ( [ "download_file" , "download_fileobj" ] )
39
51
.getACall ( )
40
52
.getArg ( 2 )
41
53
or
You can’t perform that action at this time.
0 commit comments