MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / hasSensitiveQueryParameter

Function hasSensitiveQueryParameter

internal/pluginstore/registry.go:394–405  ·  view source on GitHub ↗
(parsed *url.URL)

Source from the content-addressed store, hash-verified

392}
393
394func hasSensitiveQueryParameter(parsed *url.URL) bool {
395 if parsed == nil || parsed.RawQuery == "" {
396 return false
397 }
398 for key := range parsed.Query() {
399 switch strings.ToLower(strings.TrimSpace(key)) {
400 case "token", "access_token", "access_key", "secret", "secret_key", "api_key":
401 return true
402 }
403 }
404 return false
405}
406
407func validPluginVersion(version string) bool {
408 return version != "" && !strings.HasPrefix(version, "v") && pluginVersionPattern.MatchString(version)

Callers 3

ValidateArtifactFunction · 0.85

Calls 1

QueryMethod · 0.80

Tested by

no test coverage detected