Explorar o código

Merge pull request #241 from manasmbellani/enhance_apikey_rule

constants.go(enhance): added an enhancement to include apikey without…
Zachary Rice %!s(int64=6) %!d(string=hai) anos
pai
achega
b2efcf36c8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/constants.go

+ 1 - 1
src/constants.go

@@ -109,7 +109,7 @@ tags = ["key", "EC"]
 
 
 [[rules]]
 [[rules]]
 description = "Generic API key"
 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"]
 tags = ["key", "API", "generic"]
 
 
 [[rules]]
 [[rules]]