cache_data_leak

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleID    = "cache-data-leak"
	ModuleName  = "Cache Data Leak"
	ModuleShort = "Detects cache and static generation patterns that may leak user data"
)

Variables

View Source
var (
	ModuleDesc = `` /* 618-byte string literal not displayed */

	ModuleConfirmation = "" /* 149-byte string literal not displayed */
	ModuleSeverity     = severity.Medium
	ModuleConfidence   = severity.Tentative
	ModuleTags         = []string{"info-disclosure", "cache-poisoning", "light"}
)

Functions

This section is empty.

Types

type Module

type Module struct {
	modkit.BasePassiveModule
	// contains filtered or unexported fields
}

Module implements the cache data leak passive scanner.

func New

func New() *Module

New creates a new Cache Data Leak module.

func (*Module) CanProcess

func (m *Module) CanProcess(ctx *httpmsg.HttpRequestResponse) bool

CanProcess accepts JS/TS content types or URL paths ending in JS/TS extensions.

func (*Module) ScanPerRequest

func (m *Module) ScanPerRequest(ctx *httpmsg.HttpRequestResponse, scanCtx *modkit.ScanContext) ([]*output.ResultEvent, error)

ScanPerRequest scans for caching patterns that may leak user data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL