phpruntime

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package phpruntime flags a target running an outdated PHP runtime that is vulnerable to the "php2shell" flaws — CVE-2026-109618 and CVE-2026-109619, two critical (CVSS 9.2) unauthenticated remote-code-execution bugs in PHP core, fixed on 2026-10-21 in PHP 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12.

It reads the PHP version from the live app's Server / X-Powered-By headers and from a repo's Dockerfile base image (FROM php:<version>), then compares it against the fixed releases. Safe mode: a single GET plus reading repo files.

Refs:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PHP2Shell

type PHP2Shell struct{}

PHP2Shell checks the detected PHP runtime version against the php2shell fixes.

func (PHP2Shell) ASVS

func (PHP2Shell) ASVS() []string

func (PHP2Shell) Category

func (PHP2Shell) Category() core.Category

func (PHP2Shell) Description

func (PHP2Shell) Description() string

func (PHP2Shell) ID

func (PHP2Shell) ID() string

func (PHP2Shell) Mode

func (PHP2Shell) Mode() core.Mode

func (PHP2Shell) OWASP

func (PHP2Shell) OWASP() []string

func (PHP2Shell) Run

func (c PHP2Shell) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

Jump to

Keyboard shortcuts

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