What’s Vulnerable › Vulnerabilities

CVE-2022-51020: Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints

Description

Flower before 2.2.0 contains a cross-site request forgery vulnerability because Tornado xsrf_cookies is disabled and the OAuth session cookie lacks SameSite. Attackers can lure authenticated users to malicious pages that POST to /api/worker/shutdown, /api/worker/pool/restart, or /api/task/revoke to shut down Celery workers, resize pools, and revoke tasks.

Affected products

How to fix

Upgrade to a fixed version: mher flower 2.2.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-51020 or the next vulnerability affects your stack