Files
sif/modules/recon/portainer-status-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

37 lines
778 B
YAML

# Portainer Status Endpoint Exposure Detection Module
id: portainer-status-exposure
info:
name: Portainer Status Exposure
author: sif
severity: low
description: Detects a Portainer instance that discloses its version and instance id over the unauthenticated pre-login status endpoint
tags: [portainer, docker, container, management, fingerprint, status, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/status"
matchers:
- type: word
part: body
words:
- "\"Version\""
- "\"InstanceID\""
condition: and
- type: status
status:
- 200
extractors:
- type: regex
name: portainer_instance_id
part: body
regex:
- '"InstanceID"\s*:\s*"([^"]+)"'
group: 1