فهرست منبع

constants.go(enhance): added an enhancement to include apikey without underscore as another detection for api keys that might be present in source code

Manas Bellani 6 سال پیش
والد
کامیت
ba39abfb19
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/constants.go

+ 1 - 1
src/constants.go

@@ -109,7 +109,7 @@ tags = ["key", "EC"]
 
 [[rules]]
 description = "Generic API key"
-regex = '''(?i)api_key(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
+regex = '''(?i)(api_key|apikey)(.{0,20})?['|"][0-9a-zA-Z]{32,45}['|"]'''
 tags = ["key", "API", "generic"]
 
 [[rules]]