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
832 B
YAML
38 lines
832 B
YAML
# RQ Dashboard Exposure Detection Module
|
|
|
|
id: rq-dashboard-exposure
|
|
info:
|
|
name: RQ Dashboard Exposure
|
|
author: sif
|
|
severity: medium
|
|
description: Detects an unprotected RQ Dashboard that leaks Redis-backed queue names and job counts and allows requeuing and deleting jobs
|
|
tags: [rq, rq-dashboard, redis, python, background-jobs, dashboard, exposure, unauth, recon]
|
|
|
|
type: http
|
|
|
|
http:
|
|
method: GET
|
|
paths:
|
|
- "{{BaseURL}}/0/data/queues.json"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "\"queues\""
|
|
- "\"failed_job_registry_count\""
|
|
- "\"scheduled_job_registry_count\""
|
|
condition: and
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
name: rq_queue_name
|
|
part: body
|
|
regex:
|
|
- '"name"\s*:\s*"([^"]+)"'
|
|
group: 1
|