Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleID = "path-normalization" ModuleName = "Path Normalization" ModuleShort = "Detects path normalization vulnerabilities" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
modkit.BaseActiveModule
// contains filtered or unexported fields
}
func (*Module) ScanPerRequest ¶
func (m *Module) ScanPerRequest( ctx *httpmsg.HttpRequestResponse, httpClient *http.Requester, scanCtx *modkit.ScanContext, ) ([]*output.ResultEvent, error)
ScanPerRequest scans the request for path normalization vulnerabilities.
type PathPayload ¶
type PathPayload struct {
Payload string // The actual traversal/normalization payload string
DisableAutoSlash bool // If true, don't automatically add a trailing slash to the base path before appending the payload
}
PathPayload defines a structure for path normalization payloads
Click to show internal directories.
Click to hide internal directories.