MCPcopy Create free account

hub / github.com/Contrast-Security-OSS/go-test-bench / functions

Functions665 in github.com/Contrast-Security-OSS/go-test-bench

↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_read_file_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_write_file_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_front_urlbuilder.go:30
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_create_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_open_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_read_file_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/ssrf/ssrf_front_urlbuilder.go:30
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/ssrf/ssrf_get_query_http_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/xss/xss_get_buffered_query_reflected_xss_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/xss/xss_front_urlbuilder.go:30
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/xss/xss_get_query_reflected_xss_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/swagger_server/root_urlbuilder.go:30
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/sql_injection/sql_injection_get_query_exec_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/sql_injection/sql_injection_front_urlbuilder.go:30
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_context_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_urlbuilder.go:37
↓ 1 callersMethodSetBasePath
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the valu
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_front_urlbuilder.go:30
↓ 1 callersMethodSetHandler
SetHandler allows for setting a http handler on this server
cmd/go-swagger/restapi/server.go:455
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_open_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_write_file_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_create_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_read_file_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_write_file_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_front_urlbuilder.go:58
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_create_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_open_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_read_file_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/ssrf/ssrf_front_urlbuilder.go:58
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/ssrf/ssrf_get_query_http_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/xss/xss_get_buffered_query_reflected_xss_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/xss/xss_get_query_reflected_xss_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/swagger_server/root_urlbuilder.go:58
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/sql_injection/sql_injection_get_query_exec_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/sql_injection/sql_injection_front_urlbuilder.go:58
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_context_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_urlbuilder.go:81
↓ 1 callersMethodString
String returns the string representation of the path with query string
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_front_urlbuilder.go:58
↓ 1 callersFunctionUnsafeRequests
UnsafeRequests generates a list of requests for all unsafe endpoints common to all app frameworks.
internal/common/commontest/request_gen.go:62
↓ 1 callersFunctionUnsafeRouteRequests
UnsafeRouteRequests generates an unsafe request for each input and sink defined for this endpoint.
internal/common/commontest/request_gen.go:27
↓ 1 callersMethodUseSwaggerUI
UseSwaggerUI for documentation at /docs
cmd/go-swagger/restapi/operations/swagger_bench_api.go:225
↓ 1 callersMethodUsesGenericTmpl
UsesGenericTmpl returns true if the route uses the generic vulnerability template.
internal/common/routes.go:41
↓ 1 callersFunctionadd
add a handler to gin
pkg/servegin/servegin.go:58
↓ 1 callersFunctionadd
(router chi.Router, rt common.Route)
pkg/servechi/servechi.go:67
↓ 1 callersFunctionadd
(router *httprouter.Router, rt common.Route)
pkg/servejschmidt/servejschmidt.go:68
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_write_file_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_open_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_create_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_read_file_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_create_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_open_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_write_file_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_read_file_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/ssrf/ssrf_get_query_http_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/xss/xss_get_buffered_query_reflected_xss_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/xss/xss_get_query_reflected_xss_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/sql_injection/sql_injection_get_query_exec_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_context_parameters.go:74
↓ 1 callersMethodbindInput
bindInput binds and validates parameter Input from query.
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_parameters.go:74
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_write_file_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_open_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_create_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_read_file_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_create_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_buffered_query_open_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_write_file_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/path_traversal/path_traversal_get_query_read_file_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/ssrf/ssrf_get_query_http_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/xss/xss_get_buffered_query_reflected_xss_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/xss/xss_get_query_reflected_xss_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/sql_injection/sql_injection_get_query_exec_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_context_parameters.go:95
↓ 1 callersMethodbindSafety
bindSafety binds and validates parameter Safety from path.
cmd/go-swagger/restapi/operations/cmd_injection/cmd_injection_get_query_command_parameters.go:95
↓ 1 callersFunctioncapitalizeAfter
for each occurrence of each character in 'special', remove that char and capitalize the following letter
cmd/go-swagger/regen/regen.go:213
↓ 1 callersMethodcheckFramework
Send request to app root to identify the framework in use
cmd/exercise/exercise.go:65
↓ 1 callersMethodcleanupDB
()
internal/injection/sqli/sql-injection.go:93
↓ 1 callersFunctionconfigureFlags
go:generate rm -rf ./operations/ go:generate go run ../regen/regen.go original generate command: //go:generate swagger generate server --target ../../
cmd/go-swagger/restapi/configure_swagger_bench.go:30
↓ 1 callersFunctionconfigureTLS
The TLS configuration before HTTPS server starts.
cmd/go-swagger/restapi/configure_swagger_bench.go:163
↓ 1 callersMethodcontextValidateID
(ctx context.Context, formats strfmt.Registry)
cmd/go-swagger/models/item.go:76
↓ 1 callersFunctionexercise
exercise was split up so that tests can report sub-test names
cmd/exercise/exercise.go:29
↓ 1 callersFunctionextractInput
(c *gin.Context, source string)
pkg/servegin/inputs.go:25
↓ 1 callersFunctionfindSwagCmd
()
cmd/go-swagger/regen/regen.go:209
↓ 1 callersFunctionfindSwagPkg
()
cmd/go-swagger/regen/regen.go:210
↓ 1 callersFunctiongenerateCode
(td tmplData, tfuncs template.FuncMap, w io.Writer)
cmd/go-swagger/regen/regen.go:138
↓ 1 callersFunctiongenerateYaml
(tdata tmplData, tfuncs template.FuncMap, w io.Writer)
cmd/go-swagger/regen/regen.go:115
↓ 1 callersFunctiongeneratedInit
(api *operations.SwaggerBenchAPI, rmap common.RouteMap, pd *common.ConstParams)
pkg/serveswagger/generatedInit.go:18
↓ 1 callersFunctiongoFmt
(path string)
cmd/go-swagger/regen/regen.go:100
↓ 1 callersFunctionhandleInterrupt
(once *sync.Once, s *Server)
cmd/go-swagger/restapi/server.go:489
↓ 1 callersMethodhandleShutdown
(wg *sync.WaitGroup, serversPtr *[]*http.Server)
cmd/go-swagger/restapi/server.go:407
↓ 1 callersMethodinitDB
()
internal/injection/sqli/sql-injection.go:74
↓ 1 callersMethodinitHandlerCache
()
cmd/go-swagger/restapi/operations/swagger_bench_api.go:428
↓ 1 callersFunctionloadTemplates
()
pkg/servegin/servegin.go:33
↓ 1 callersFunctionnewHandler
(v common.Route)
pkg/servestd/servestd.go:61
↓ 1 callersFunctionroutePkg
generates package name swagger uses for route CmdInjection -> cmd_injection
cmd/go-swagger/regen/regen.go:177
↓ 1 callersFunctionrunSwagger
(cmdDir string)
cmd/go-swagger/regen/regen.go:123
↓ 1 callersFunctionsetupGlobalMiddleware
The middleware configuration happens before anything, this middleware also applies to serving the swagger.json document. So this is a good place to pl
cmd/go-swagger/restapi/configure_swagger_bench.go:203
↓ 1 callersFunctionsignalNotify
(interrupt chan<- os.Signal)
cmd/go-swagger/restapi/server.go:505
↓ 1 callersFunctionsinkIdent
sink name, for use in identifier e.g. Command (anything preceeding the dot is stripped)
cmd/go-swagger/regen/regen.go:157
↓ 1 callersFunctionuiMiddleware
(handler http.Handler)
cmd/go-swagger/restapi/configure_swagger_bench.go:191
↓ 1 callersMethodvalidateDescription
(formats strfmt.Registry)
cmd/go-swagger/models/item.go:49
↓ 1 callersMethodvalidateMessage
(formats strfmt.Registry)
cmd/go-swagger/models/error.go:44
← previousnext →201–300 of 665, ranked by callers