php2shell

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 2 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

Overview

Package php2shell holds what the php2shell active probe and the passive version audit share about CVE-2026-109618 / CVE-2026-109619: the first fixed release of each affected PHP branch and the advisory references.

Index

Constants

View Source
const CVEs = "CVE-2026-109618 / CVE-2026-109619"

CVEs names both identifiers the advisory assigns to the php2shell bug.

Variables

View Source
var References = []string{
	"https://calif.io/php2shell/",
	"https://github.com/assetnote/php2shell-scanner",
}

References are attached to every php2shell result.

Functions

func FixedRelease

func FixedRelease(header string) string

FixedRelease returns the first patched release on the branch of the version advertised in header ("8.3.36"), or "" when the branch is not judged.

func Version

func Version(header string) string

Version extracts the "PHP/x.y.z" version from an X-Powered-By (or Server) header value. It returns "" when no full three-part version is present.

Types

type Verdict

type Verdict int

Verdict is what an advertised PHP version says about php2shell.

const (
	// Unknown: no PHP version was advertised, or its branch is not in the table.
	Unknown Verdict = iota
	// Fixed: the advertised release is at or past the branch's fix.
	Fixed
	// Vulnerable: the advertised release predates the branch's fix.
	Vulnerable
)

func VerdictFor

func VerdictFor(header string) Verdict

VerdictFor judges the PHP version advertised in header. A distribution backport can patch an older-numbered build, so Vulnerable is a lead to verify, not proof.

Jump to

Keyboard shortcuts

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