Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModuleID = "path-relative-stylesheet" ModuleName = "Path-Relative Stylesheet Import (PRSSI)" ModuleShort = "Detects path-relative stylesheet imports on a page reachable via path-info confusion without nosniff" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
modkit.BaseActiveModule
// contains filtered or unexported fields
}
Module implements the path-relative stylesheet import (PRSSI) scanner.
func (*Module) CanProcess ¶
func (m *Module) CanProcess(ctx *httpmsg.HttpRequestResponse) bool
CanProcess restricts to GET requests with a response (idempotent re-fetches).
func (*Module) IncludesBaseCanProcess ¶
func (*Module) ScanPerRequest ¶
func (m *Module) ScanPerRequest( ctx *httpmsg.HttpRequestResponse, httpClient *http.Requester, scanCtx *modkit.ScanContext, ) ([]*output.ResultEvent, error)
ScanPerRequest confirms PRSSI with three gates: the page carries a path-relative stylesheet and omits nosniff; a path-info-confused URL serves the same page; and a genuinely nonexistent sibling does NOT (so a universal catch-all is excluded).
Click to show internal directories.
Click to hide internal directories.