mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 22:40:54 -07:00
* feat(modules): add haproxy stats, nexus and pushgateway exposure modules * chore(modules): trim redundant module header comments drop the top-line comments on the new infra exposure modules that just restated the id/name fields already in the info block
35 lines
830 B
YAML
35 lines
830 B
YAML
id: haproxy-stats-exposure
|
|
info:
|
|
name: HAProxy Stats Page Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects an HAProxy statistics dashboard left reachable at its compiled-in default uri without stats auth configured, exposing backend server names, internal addresses, health state and session counts
|
|
tags: [haproxy, loadbalancer, reverse-proxy, dashboard, api, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/haproxy?stats"
|
|
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "Statistics Report for"
|
|
- "HAProxy version"
|
|
condition: and
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: haproxy_version
|
|
part: body
|
|
regex:
|
|
- 'HAProxy version\s+([0-9]+(?:\.[0-9]+)+)'
|
|
group: 1
|