Files
sif/modules/recon/celery-flower-exposure.yaml
T
TigahandGitHub 855a47c3cf feat(modules): add sidekiq, flower and rq-dashboard exposure modules (#254)
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.
2026-07-02 12:56:12 -07:00

38 lines
820 B
YAML

# Celery Flower Worker API Exposure Detection Module
id: celery-flower-exposure
info:
name: Celery Flower Worker API Exposure
author: sif
severity: high
description: Detects a Celery Flower instance with its api opened that leaks worker broker config and registered tasks and can execute tasks
tags: [flower, celery, broker, python, background-jobs, dashboard, exposure, unauth, recon]
type: http
http:
method: GET
paths:
- "{{BaseURL}}/api/workers"
matchers:
- type: word
part: body
words:
- "\"active_queues\""
- "\"registered\""
- "\"conf\""
condition: and
- type: status
status:
- 200
extractors:
- type: regex
name: celery_version
part: body
regex:
- '"sw_ver"\s*:\s*"([^"]+)"'
group: 1