Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleID = "dependent-response" ModuleName = "Referer / User-Agent Dependent Response" ModuleShort = "Detects responses that change based on a spoofable Referer or User-Agent header" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
modkit.BaseActiveModule
// contains filtered or unexported fields
}
Module implements the Referer/User-Agent dependent-response scanner.
func (*Module) CanProcess ¶
func (m *Module) CanProcess(ctx *httpmsg.HttpRequestResponse) bool
CanProcess restricts to GET requests with a response (idempotent, so re-sending with different headers is side-effect-free) and skips media/asset URLs.
func (*Module) IncludesBaseCanProcess ¶
func (*Module) ScanPerRequest ¶
func (m *Module) ScanPerRequest( ctx *httpmsg.HttpRequestResponse, httpClient *http.Requester, scanCtx *modkit.ScanContext, ) ([]*output.ResultEvent, error)
ScanPerRequest compares two values of each spoofable header, requiring each variant to reproduce stably before reporting a material difference.
Click to show internal directories.
Click to hide internal directories.