Skip to content

Commit 4a84431

Browse files
committed
Python: _ in var name not handled by sensitive-data-sources
1 parent 5dc2bb7 commit 4a84431

File tree

1 file changed

+4
-0
lines changed
  • python/ql/test/experimental/dataflow/sensitive-data

1 file changed

+4
-0
lines changed

python/ql/test/experimental/dataflow/sensitive-data/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ def encrypt_password(pwd):
3737
x = f()
3838
print(x) # $ SensitiveUse=password
3939

40+
# some prefixes makes us ignore it as a source
41+
not_found.isSecret
42+
not_found.is_secret # $ SPURIOUS: SensitiveDataSource=secret
43+
4044
def my_func(non_sensitive_name):
4145
x = non_sensitive_name()
4246
print(x) # $ SensitiveUse=password

0 commit comments

Comments
 (0)