mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
fix(easypost): only detect tokens of correct length (#1628)
This commit is contained in:
1 parent
c1add1d268
commit
4e303d0284
2 files changed
+25
-8
No files matched your search
@@ -409,14 +409,14 @@ keywords = ["dt0c01"]
|
||||
[[rules]]
|
||||
id = "easypost-api-token"
|
||||
description = "Identified an EasyPost API token, which could lead to unauthorized postal and shipment service access and data exposure."
|
||||
regex = '''\bEZAK(?i)[a-z0-9]{54}'''
|
||||
regex = '''\bEZAK(?i)[a-z0-9]{54}\b'''
|
||||
entropy = 2
|
||||
keywords = ["ezak"]
|
||||
|
||||
[[rules]]
|
||||
id = "easypost-test-api-token"
|
||||
description = "Detected an EasyPost test API token, risking exposure of test environments and potentially sensitive shipment data."
|
||||
regex = '''\bEZTK(?i)[a-z0-9]{54}'''
|
||||
regex = '''\bEZTK(?i)[a-z0-9]{54}\b'''
|
||||
entropy = 2
|
||||
keywords = ["eztk"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user