Files
sif/modules/recon/nsq-stats-exposure.yaml
T
TigahandGitHub 473c74da5e feat(modules): add nsq and pulsar exposure modules (#297)
* feat(modules): add nsq and pulsar exposure modules

* chore(modules): trim redundant module header comments

drop the leading comment restating id/name on nsq-stats-exposure and pulsar-metrics-exposure
2026-07-22 12:47:36 -07:00

48 lines
972 B
YAML

id: nsq-stats-exposure
info:
name: NSQ Stats API Exposure
author: sif
severity: high
description: Detects an exposed nsqd HTTP API through its unauthenticated stats endpoint. nsqd ships without any authentication mechanism, so the same reachable API also exposes topic/channel pause, delete and publish endpoints
tags: [nsq, nsqd, messaging, streaming, api, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/stats?format=json"
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "\"topics\""
- type: regex
part: body
regex:
- '"health"\s*:\s*"OK"'
- type: word
part: body
words:
- "\"start_time\""
- type: word
part: body
words:
- "\"version\""
extractors:
- type: regex
name: nsq_version
part: body
regex:
- '"version"\s*:\s*"([^"]+)"'
group: 1