mirror of
https://github.com/lunchcat/sif.git
synced 2026-07-28 14:37:01 -07:00
add recon modules for self-hosted background-job dashboards that ship no authentication of their own and rely on the hosting application to protect them: sidekiq web /sidekiq/stats discloses the redis server internals and the job queue, celery flower /api/workers (reachable only when its api is deliberately opened) discloses every worker's broker config and registered tasks, and rq-dashboard /0/data/queues.json discloses the redis-backed queue names and job counts; each open instance also allows killing, retrying or deleting jobs, while a deployment protected by the application returns a redirect or 401 and is not flagged.
38 lines
836 B
YAML
38 lines
836 B
YAML
# Sidekiq Web Dashboard Exposure Detection Module
|
|
|
|
id: sidekiq-web-exposure
|
|
info:
|
|
name: Sidekiq Web Dashboard Exposure
|
|
author: sif
|
|
severity: high
|
|
description: Detects an unauthenticated Sidekiq Web dashboard that leaks Redis internals and the job queue and allows killing and retrying jobs
|
|
tags: [sidekiq, redis, background-jobs, ruby, rails, dashboard, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/sidekiq/stats"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"default_latency\""
|
|
- "\"redis_version\""
|
|
- "\"server_utc_time\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: redis_version
|
|
part: body
|
|
regex:
|
|
- '"redis_version"\s*:\s*"([^"]+)"'
|
|
group: 1
|