Documentation
¶
Overview ¶
Package exposure checks for sensitive files and endpoints that should never be reachable: dotfiles, VCS metadata, API docs, metrics, backups, directory listings and admin dashboards. These checks are "safe" mode — they request a fixed list of well-known paths with GET only and send no attack payloads — but they do touch paths beyond the home page, so they are not passive.
To avoid false positives on single-page apps that answer 200 for everything, each check validates a content signature, not just the status code.
Index ¶
- type BackupFiles
- func (BackupFiles) ASVS() []string
- func (BackupFiles) Category() core.Category
- func (BackupFiles) Description() string
- func (BackupFiles) ID() string
- func (BackupFiles) Mode() core.Mode
- func (BackupFiles) OWASP() []string
- func (BackupFiles) Run(ctx context.Context, t core.Target) ([]core.Finding, error)
- type Dashboards
- type DirListing
- type DotEnv
- type Git
- type Metrics
- type Swagger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupFiles ¶
type BackupFiles struct{}
BackupFiles flags common backup/source-dump filenames left in the web root.
func (BackupFiles) ASVS ¶
func (BackupFiles) ASVS() []string
func (BackupFiles) Category ¶
func (BackupFiles) Category() core.Category
func (BackupFiles) Description ¶
func (BackupFiles) Description() string
func (BackupFiles) ID ¶
func (BackupFiles) ID() string
func (BackupFiles) Mode ¶
func (BackupFiles) Mode() core.Mode
func (BackupFiles) OWASP ¶
func (BackupFiles) OWASP() []string
type Dashboards ¶
type Dashboards struct{}
Dashboards flags an unauthenticated admin/ops dashboard, including Scout's sibling tools' own UIs (Sentinel, Pulse) left open.
func (Dashboards) ASVS ¶
func (Dashboards) ASVS() []string
func (Dashboards) Category ¶
func (Dashboards) Category() core.Category
func (Dashboards) Description ¶
func (Dashboards) Description() string
func (Dashboards) ID ¶
func (Dashboards) ID() string
func (Dashboards) Mode ¶
func (Dashboards) Mode() core.Mode
func (Dashboards) OWASP ¶
func (Dashboards) OWASP() []string
type DirListing ¶
type DirListing struct{}
DirListing flags an auto-indexed directory.
func (DirListing) ASVS ¶
func (DirListing) ASVS() []string
func (DirListing) Category ¶
func (DirListing) Category() core.Category
func (DirListing) Description ¶
func (DirListing) Description() string
func (DirListing) ID ¶
func (DirListing) ID() string
func (DirListing) Mode ¶
func (DirListing) Mode() core.Mode
func (DirListing) OWASP ¶
func (DirListing) OWASP() []string
type DotEnv ¶
type DotEnv struct{}
DotEnv flags a reachable .env file containing environment-variable assignments.
func (DotEnv) Description ¶
type Git ¶
type Git struct{}
Git flags an exposed .git directory (recoverable source + history).
func (Git) Description ¶
type Metrics ¶
type Metrics struct{}
Metrics flags an exposed Prometheus-style metrics endpoint.
func (Metrics) Description ¶
type Swagger ¶
type Swagger struct{}
Swagger flags exposed, unauthenticated API documentation.