mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
fix(jwt): longer segment lengths (#1214)
This commit is contained in:
1 parent
f65f9157ff
commit
e9135cf0b5
2 files changed
+44
-4
No files matched your search
@@ -2175,7 +2175,7 @@ keywords = [
|
||||
[[rules]]
|
||||
id = "jwt"
|
||||
description = "JSON Web Token"
|
||||
regex = '''(?i)\b(ey[0-9a-z]{30,34}\.ey[0-9a-z-\/_]{30,500}\.[0-9a-zA-Z-\/_]{10,200}={0,2})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
regex = '''\b(ey[a-zA-Z0-9]{17,}\.ey[a-zA-Z0-9\/\\_-]{17,}\.(?:[a-zA-Z0-9\/\\_-]{10,}={0,2})?)(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = [
|
||||
"ey",
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user