path_normalization

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleID    = "path-normalization"
	ModuleName  = "Path Normalization"
	ModuleShort = "Detects path normalization vulnerabilities"
)

Variables

View Source
var (
	ModuleDesc = `` /* 689-byte string literal not displayed */

	ModuleConfirmation = "" /* 532-byte string literal not displayed */
	ModuleSeverity     = severity.High
	ModuleConfidence   = severity.Firm
	ModuleTags         = []string{"misconfiguration", "lfi", "traversal", "moderate"}
)

Functions

This section is empty.

Types

type Module

type Module struct {
	modkit.BaseActiveModule
	// contains filtered or unexported fields
}

func New

func New() *Module

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL