mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
* 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
48 lines
972 B
YAML
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
|