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.
39 lines
840 B
YAML
39 lines
840 B
YAML
# HashiCorp Nomad Agent API Exposure Detection Module
|
|
|
|
id: nomad-agent-exposure
|
|
info:
|
|
name: HashiCorp Nomad Agent API Exposure
|
|
author: sif
|
|
severity: high
|
|
description: Detects a HashiCorp Nomad agent with ACLs disabled that dumps its own configuration over the unauthenticated agent self endpoint
|
|
tags: [nomad, hashicorp, orchestration, scheduler, controlplane, api, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/v1/agent/self"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"config\""
|
|
- "\"member\""
|
|
- "\"stats\""
|
|
- "\"Tags\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: nomad_version
|
|
part: body
|
|
regex:
|
|
- '"build"\s*:\s*"([0-9][^"]*)"'
|
|
group: 1
|