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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mher | flower | < 2.2.0 | 2.2.0 |
References
- GitHub Issue #1217 issue-tracking
- Patch Commit patch
- Patch Commit patch
- Vulnerable code in flower/api/control.py technical-description
- https://github.com/mher/flower product
- VulnCheck Advisory: Flower before 2.2.0 CSRF via Worker and Task Control API Endpoints third-party-advisory