authz

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessResult

type AccessResult struct {
	Identity   string
	StatusCode int
	BodyLength int
	TimeMs     int64
	HasData    bool
}

type AuthzFinding

type AuthzFinding struct {
	URL      string
	Method   string
	Type     string // "idor", "broken-auth", "privilege-escalation"
	LowPriv  string
	HighPriv string
	Evidence string
}

func TestEndpoint

func TestEndpoint(client *http.Client, method, url string, body string, identities []Identity) []AuthzFinding

TestEndpoint sends the same request with each identity and compares

type Identity

type Identity struct {
	Name    string
	Headers map[string]string
}

Jump to

Keyboard shortcuts

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