mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
fix(square): make prefix case sensitive (#1469)
This commit is contained in:
1 parent
3698060a2b
commit
8510d39ffe
2 files changed
+9
-6
No files matched your search
@@ -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",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user