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 (*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.
Click to show internal directories.
Click to hide internal directories.