Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CategoryInfo ¶
func CategoryInfo(cat OWASPCategory) (name, severity, description string)
CategoryInfo returns human-readable name, default severity, and description for an OWASP category.
Types ¶
type ClassifiedEndpoint ¶
type ClassifiedEndpoint struct {
Endpoint
Categories []OWASPCategory
}
ClassifiedEndpoint is an endpoint with its OWASP risk categories
type Endpoint ¶
type Endpoint struct {
Path string
Method string
OperationID string
Summary string
RequiresAuth bool
PathParams []Param
QueryParams []Param
BodyParams []Param
ResponseFields []string
Tags []string
}
Endpoint represents a single API endpoint parsed from OpenAPI spec
func (*Endpoint) IsAdminPath ¶
IsAdminPath checks if path matches admin glob patterns
func (*Endpoint) IsWriteOperation ¶
IsWriteOperation returns true for state-changing methods (POST/PUT/PATCH/DELETE)
type LoadedSpec ¶
LoadedSpec holds the parsed OpenAPI document and extracted endpoints.
func Load ¶
func Load(pathOrURL string) (*LoadedSpec, error)
Load parses an OpenAPI spec from a file path or URL.
type OWASPCategory ¶
type OWASPCategory string
OWASPCategory represents an OWASP API Security Top 10 category
const ( API1_BOLA OWASPCategory = "api1-bola" API2_BROKEN_AUTH OWASPCategory = "api2-broken-auth" API3_BROKEN_OPL OWASPCategory = "api3-broken-object-property" API4_RATE_LIMIT OWASPCategory = "api4-rate-limit" API5_BFLA OWASPCategory = "api5-bfla" API6_MASS_ASSIGN OWASPCategory = "api6-mass-assignment" API7_MISCONFIG OWASPCategory = "api7-misconfig" API8_INJECTION OWASPCategory = "api8-injection" API9_SSRF OWASPCategory = "api9-ssrf" )
Click to show internal directories.
Click to hide internal directories.