CVE-2021-3509 Cross-site scripting in ceph-dashboard

Medium 6.1 Published Updated

An XSS vulnerability in the Ceph Dashboard allows attackers to access JWT tokens exposed in documentation responses, compromising confidentiality, integrity, and availability.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-3509?

CVE-2021-3509 is a medium-severity cross-site scripting vulnerability in ceph-dashboard, published on 26 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A flaw was found in Red Hat Ceph Storage 4, in the Dashboard component. In response to CVE-2020-27839, the JWT token was moved from localStorage to an httpOnly cookie. However, token cookies are used in the body of the HTTP response for the documentation, which again makes it available to XSS.The greatest threat to the system is for confidentiality, integrity, and availability.

Weakness: CWE-79

Which versions are affected by CVE-2021-3509?

It affects 1 product.

Products include Redhat Ceph Storage.

How do I fix CVE-2021-3509?

Apply the vendor's patch.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-3509 being exploited?

There is no known exploitation of CVE-2021-3509 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-3509, GHSA-g9cr-7jh8-qrmx, UBUNTU-CVE-2021-3509.

Is CVE-2021-3509 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free