Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleID = "xpath-injection" ModuleName = "XPath Injection" ModuleShort = "Detects XPath/XQuery injection via engine error signatures and a boolean oracle" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
modkit.BaseActiveModule
// contains filtered or unexported fields
}
Module implements the XPath Injection active scanner.
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 parameter for XPath injection. It fails closed on any target that shows no XPath-engine evidence: the error leg needs an XPath error string, and the boolean leg needs a reproducible true/false differential — neither of which a non-XPath endpoint (SPA, JSON API, static page) produces.
Click to show internal directories.
Click to hide internal directories.