CVE-2022-51020
Flower before 2.2.0 contains a cross-site request forgery …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/mher/flower
- github.com/mher/flower/blob/v2.1.0/flower/api/control.py#L25-L27
- github.com/mher/flower/commit/3b2115af7f9c42bd2da2fbcbd919f77013e9ec51
- github.com/mher/flower/commit/a14408b16cc3d2877d36659005ce0d72b6162629
- github.com/mher/flower/issues/1217
- www.vulncheck.com/advisories/flower-before-2.2.0-csrf-via-worker-and-task-control-api-endp
- nvd.nist.gov/vuln/detail/CVE-2022-51020
- cve.org/CVERecord?id=CVE-2022-51020
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.