mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Percent/URL Decoding Support (#1831)
* Add initial percent decoding support * Refactor multi encoding support * Add detect tests to confirm positions * Avoid a few extra passes during decoding * Do multiple passes for finding encodings re * Fix issue with overlapping encodings when doing separate passes
This commit is contained in:
1 parent
6f967cad68
commit
78eebaca9d
14 files changed
+945
-373
No files matched your search
@@ -70,7 +70,7 @@
|
||||
# goes outside the bounds of the encoded value
|
||||
id = 'overlapping'
|
||||
description = 'Overlapping'
|
||||
regex = '''secret=(decoded-secret-value)'''
|
||||
regex = '''secret=(decoded-secret-value\w*)'''
|
||||
tags = ['overlapping']
|
||||
secretGroup = 1
|
||||
|
||||
Reference in new issue
Block a user