Skip to content

Commit db790e8

Browse files
committed
info leaks: added reference to token-hunter
1 parent 798bcf7 commit db790e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/analysis/information_leaks/code/information_leaks.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
}
2121

2222
URL_REGEXES = {
23+
# based on https://gitlab.com/gitlab-com/gl-security/threatmanagement/redteam/redteam-public/token-hunter regex
2324
'credentials_in_url': re.compile(
2425
rb'([a-zA-Z]{3,10}://[a-zA-Z0-9]{3,20}:[^/\s:@]{3,20}@[A-Za-z0-9._/:%?&${}=-]{7,100})["\'\s\x00]?'
2526
)

0 commit comments

Comments
 (0)