Files
sif/modules/recon/traefik-api-exposure.yaml
T
TigahandGitHub 7ea1cd28d5 feat(modules): add traefik, nomad and portainer exposure modules (#249)
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.
2026-07-02 17:00:50 -07:00

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