@@ -21,20 +21,28 @@ impl MyStruct {
21
21
fn get_password ( ) -> String { get_string ( ) }
22
22
23
23
fn test_passwords (
24
- password : & str , passwd : & str , my_password : & str , password_str : & str , pass_phrase : & str ,
25
- auth_key : & str , authenticationkey : & str , authKey : & str ,
24
+ password : & str , pass_word : & str , passwd : & str , my_password : & str , password_str : & str ,
25
+ pass_phrase : & str , passphrase : & str , passPhrase : & str ,
26
+ auth_key : & str , authkey : & str , authKey : & str , authentication_key : & str , authenticationkey : & str , authenticationKey : & str ,
26
27
harmless : & str , encrypted_password : & str , password_hash : & str ,
27
28
ms : & MyStruct
28
29
) {
29
30
// passwords
30
31
sink ( password) ; // $ sensitive=password
32
+ sink ( pass_word) ; // $ MISSING: sensitive=password
31
33
sink ( passwd) ; // $ sensitive=password
32
34
sink ( my_password) ; // $ sensitive=password
33
35
sink ( password_str) ; // $ sensitive=password
34
36
sink ( pass_phrase) ; // $ MISSING: sensitive=password
37
+ sink ( passphrase) ; // $ sensitive=password
38
+ sink ( passPhrase) ; // $ sensitive=password
39
+
35
40
sink ( auth_key) ; // $ MISSING: sensitive=password
36
- sink ( authenticationkey ) ; // $ sensitive=password
41
+ sink ( authkey ) ; // $ sensitive=password
37
42
sink ( authKey) ; // $ sensitive=password
43
+ sink ( authentication_key) ; // $ MISSING: sensitive=password
44
+ sink ( authenticationkey) ; // $ sensitive=password
45
+ sink ( authenticationKey) ; // $ sensitive=password
38
46
39
47
sink ( ms) ; // $ MISSING: sensitive=password
40
48
sink ( ms. password . as_str ( ) ) ; // $ MISSING: sensitive=password
@@ -65,7 +73,9 @@ fn get_secret_token() -> String { get_string() }
65
73
fn get_next_token ( ) -> String { get_string ( ) }
66
74
67
75
fn test_credentials (
68
- account_key : & str , accnt_key : & str , license_key : & str , secret_key : & str , is_secret : bool , num_accounts : i64 , uid : i64 ,
76
+ account_key : & str , accnt_key : & str , license_key : & str , secret_key : & str , is_secret : bool , num_accounts : i64 ,
77
+ username : String , user_name : String , userid : i64 , user_id : i64 , my_user_id_64 : i64 , unique_id : i64 , uid : i64 ,
78
+ sessionkey : & [ u64 ; 4 ] , session_key : & [ u64 ; 4 ] , hashkey : & [ u64 ; 4 ] , hash_key : & [ u64 ; 4 ] ,
69
79
ms : & MyStruct
70
80
) {
71
81
// credentials
@@ -74,17 +84,29 @@ fn test_credentials(
74
84
sink ( license_key) ; // $ MISSING: sensitive=secret
75
85
sink ( secret_key) ; // $ sensitive=secret
76
86
87
+ sink ( username) ; // $ sensitive=id
88
+ sink ( user_name) ; // $ MISSING: sensitive=id
89
+ sink ( userid) ; // $ sensitive=id
90
+ sink ( user_id) ; // $ MISSING: sensitive=id
91
+ sink ( my_user_id_64) ; // $ MISSING: sensitive=id
92
+
93
+ sink ( sessionkey) ; // $ sensitive=id
94
+ sink ( session_key) ; // $ MISSING: sensitive=id
95
+
77
96
sink ( ms. get_certificate ( ) ) ; // $ sensitive=certificate
78
97
79
98
sink ( generate_secret_key ( ) ) ; // $ sensitive=secret
80
99
sink ( get_secure_key ( ) ) ; // $ MISSING: sensitive=secret
81
100
sink ( get_private_key ( ) ) ; // $ MISSING: sensitive=secret
82
101
sink ( get_secret_token ( ) ) ; // $ sensitive=secret
83
102
84
- // not credentials
103
+ // not (necessarily) credentials
85
104
sink ( is_secret) ;
86
105
sink ( num_accounts) ; // $ SPURIOUS: sensitive=id
106
+ sink ( unique_id) ;
87
107
sink ( uid) ; // $ SPURIOUS: sensitive=id
108
+ sink ( hashkey) ;
109
+ sink ( hash_key) ;
88
110
89
111
sink ( ms. get_certificate_url ( ) ) ; // $ SPURIOUS: sensitive=certificate
90
112
sink ( ms. get_certificate_file ( ) ) ; // $ SPURIOUS: sensitive=certificate
0 commit comments