File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
python/ql/test/experimental/dataflow/sensitive-data Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,25 @@ def encrypt_password(pwd):
24
24
f = get_password
25
25
f () # $ SensitiveDataSource=password
26
26
27
+ # more tests of functions we don't have definition for
28
+ x = unkown_func_not_even_imported_get_password () # $ SensitiveDataSource=password
29
+ print (x ) # $ SensitiveUse=password
30
+
31
+ f = get_passwd
32
+ x = f () # $ MISSING: SensitiveDataSource=password
33
+ print (x ) # $ MISSING: SensitiveUse=password
34
+
35
+ import not_found
36
+ f = not_found .get_passwd # $ SensitiveDataSource=password
37
+ x = f () # $ MISSING: SensitiveDataSource=password
38
+ print (x ) # $ MISSING: SensitiveUse=password
39
+
40
+ def my_func (non_sensitive_name ):
41
+ x = non_sensitive_name () # $ MISSING: SensitiveDataSource=password
42
+ print (x ) # $ MISSING: SensitiveUse=password
43
+ f = not_found .get_passwd # $ SensitiveDataSource=password
44
+ my_func (f )
45
+
27
46
# attributes
28
47
foo = ObjectFromDatabase ()
29
48
foo .secret # $ SensitiveDataSource=secret
You can’t perform that action at this time.
0 commit comments