lfi_generic

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleID    = "lfi-generic"
	ModuleName  = "LFI Generic"
	ModuleShort = "Detects LFI via path traversal payloads"
)

Variables

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

	ModuleConfirmation = "Confirmed when path traversal payloads cause known system file contents (e.g., /etc/passwd) to appear in the response"
	// High, not Critical: the oracle proves a file was read, not that the read
	// reaches code execution — that depends on the sink (a PHP include chain, a
	// template loader) which this module does not establish. Critical also left no
	// headroom to distinguish a confirmed /etc/passwd read from the weaker
	// docroot-relative results, which now downgrade to Info via
	// modkit.DocrootFetchInfo. Sibling lfi-path-traversal already reports High.
	ModuleSeverity   = severity.High
	ModuleConfidence = severity.Certain
	ModuleTags       = []string{"lfi", "injection", "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) ScanPerInsertionPoint

func (m *Module) ScanPerInsertionPoint(
	ctx *httpmsg.HttpRequestResponse,
	ip httpmsg.InsertionPoint,
	httpClient *http.Requester,
	scanCtx *modkit.ScanContext,
) ([]*output.ResultEvent, error)

ScanPerInsertionPoint tests a single insertion point for LFI.

Jump to

Keyboard shortcuts

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