Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleID = "server-side-js-injection" ModuleName = "Server-Side JavaScript Injection" ModuleShort = "Detects server-side JavaScript (Node.js) code injection via OAST callbacks and busy-wait timing" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
modkit.BaseActiveModule
// contains filtered or unexported fields
}
Module implements the server-side JavaScript injection active scanner.
func (*Module) ConfirmsResultByBodyDifferential ¶ added in v0.5.3
func (m *Module) ConfirmsResultByBodyDifferential(result *output.ResultEvent) bool
ConfirmsResultByBodyDifferential opts in-band results into the executor's body-differential re-confirmation. Both legs this module runs today prove themselves out of band or by delay — neither shows in a replayed body — so their results (signal oast/timing) are never re-confirmed this way; an in-band leg added later is covered by marking its results inband.
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 server-side JavaScript injection: out-of-band callbacks first (Firm, async), then busy-wait timing.
Click to show internal directories.
Click to hide internal directories.