php2shell

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModuleID    = "php2shell"
	ModuleName  = "php2shell Multipart Parser Crash"
	ModuleShort = "Flags PHP hosts whose multipart parser crashes on deeply nested array keys (php2shell, CVE-2026-109618 / CVE-2026-109619)"
)

Variables

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

	ModuleConfirmation = "" /* 300-byte string literal not displayed */
	ModuleSeverity     = severity.Suspect
	ModuleConfidence   = severity.Tentative
	// "php" gates the module on hosts a PHP fingerprint marked (re-checked fail
	// closed in the scan). Not risk:high: it runs in a default scan, but each
	// tested path takes up to ~29 MiB of upload and can kill a PHP-FPM worker.
	ModuleTags = []string{"php", "cve", "rce", "dos", "intrusive"}
)

Functions

This section is empty.

Types

type Module

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

Module implements the php2shell multipart-parser crash probe.

func New

func New() *Module

New creates a new php2shell module.

func (*Module) CanProcess

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

CanProcess accepts any record with a request; the target path is rebuilt.

func (*Module) IncludesBaseCanProcess

func (m *Module) IncludesBaseCanProcess() bool

IncludesBaseCanProcess returns false because this module uses a custom CanProcess.

func (*Module) RequiredTechs

func (m *Module) RequiredTechs() []string

RequiredTechs implements modules.TechAware. The executor's gate fails OPEN on a host with no detected stack (and is off at --intensity deep), so ScanPerRequest re-checks and fails CLOSED.

func (*Module) ScanPerRequest

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

ScanPerRequest probes the record's origin once, on the first record seen after a PHP fingerprint marked the host.

Jump to

Keyboard shortcuts

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