php_security

package
v0.0.19-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package php_security provides functionality to update PHP security advisories from FriendsOfPHP Security Advisories Database in the knowledge database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update(db *bun.DB) error

Update updates the PHP security advisories from FriendsOfPHP

Types

type AdvisoryBranch

type AdvisoryBranch = knowledge.AdvisoryBranch

AdvisoryBranch represents an advisory branch (legacy alias)

type FriendsOfPHPAdvisory

type FriendsOfPHPAdvisory = knowledge.FriendsOfPHPAdvisory

FriendsOfPHPAdvisory represents a FriendsOfPHP advisory (legacy alias)

type PHPCoreVulnerability

type PHPCoreVulnerability struct {
	CVE         string    `json:"cve"`
	Summary     string    `json:"summary"`
	Description string    `json:"description"`
	Published   time.Time `json:"published"`
	Modified    time.Time `json:"modified"`
	Severity    string    `json:"severity"`
	CVSS        float64   `json:"cvss"`
	References  []string  `json:"references"`
	Versions    []string  `json:"versions"`
}

PHPCoreVulnerability represents a PHP core vulnerability

type PackagistAdvisory

type PackagistAdvisory struct {
	AdvisoryID         string                    `json:"advisoryId"`
	PackageName        string                    `json:"packageName"`
	RemoteID           string                    `json:"remoteId"`
	Title              string                    `json:"title"`
	Link               string                    `json:"link"`
	CVE                string                    `json:"cve"`
	AffectedVersions   string                    `json:"affectedVersions"`
	Source             string                    `json:"source"`
	ReportedAt         string                    `json:"reportedAt"`
	ComposerRepository string                    `json:"composerRepository"`
	Severity           *string                   `json:"severity"`
	Sources            []PackagistAdvisorySource `json:"sources"`
}

PackagistAdvisory represents a single security advisory from Packagist

type PackagistAdvisorySource

type PackagistAdvisorySource struct {
	Name     string `json:"name"`
	RemoteID string `json:"remoteId"`
}

PackagistAdvisorySource represents the source of an advisory

type PackagistSecurityResponse

type PackagistSecurityResponse struct {
	Advisories map[string][]PackagistAdvisory `json:"advisories"`
}

PackagistSecurityResponse represents the response from Packagist security advisories API

Jump to

Keyboard shortcuts

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