mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
add recon modules for container and proxy control planes that answer without authentication: traefik serves its full routing config at /api/overview when the api is enabled, nomad dumps the agent config at /v1/agent/self when acls are disabled (403 otherwise), and portainer discloses its version and instance id at the public /api/status.
43 lines
932 B
YAML
43 lines
932 B
YAML
# Traefik API and Dashboard Exposure Detection Module
|
|
|
|
id: traefik-api-exposure
|
|
info:
|
|
name: Traefik API Exposure
|
|
author: sif
|
|
severity: high
|
|
description: Detects an unauthenticated Traefik dashboard api reachable at /api/overview, exposing a config summary of router and service counts, enabled features and providers
|
|
tags: [traefik, reverse-proxy, ingress, api, dashboard, controlplane, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/api/overview"
|
|
|
|
matchers:
|
|
- type: regex
|
|
part: body
|
|
regex:
|
|
- '"http"\s*:\s*\{'
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"features\""
|
|
- "\"accessLog\""
|
|
- "\"providers\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: traefik_provider
|
|
part: body
|
|
regex:
|
|
- '"providers"\s*:\s*\[\s*"([^"]+)"'
|
|
group: 1
|