fix(square): make prefix case sensitive (#1469)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-09-18 10:22:25 -05:00
1 parent 3698060a2b
commit 8510d39ffe
2 files changed
+9 -6

No files matched your search

+1 -1
View File
@@ -2760,7 +2760,7 @@ keywords = [
[[rules]]
id = "square-access-token"
description = "Detected a Square Access Token, risking unauthorized payment processing and financial transaction exposure."
regex = '''(?i)\b((EAAA|sq0atp-)[0-9A-Za-z\-_]{22,60})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
regex = '''\b((?:EAAA|sq0atp-)[\w-]{22,60})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
keywords = [
"sq0atp-","eaaa",
]