CVE-2021-24349 Gallery From Files <= 1.6.0 - Reflected Cross-Site Scripting (XSS)
Attackers can inject malicious scripts via unsanitized filenames in error messages, potentially leading to session hijacking or site compromise.
- 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
- None listed
What is CVE-2021-24349?
CVE-2021-24349 is a medium-severity cross-site scripting vulnerability in Unknown Gallery from files, published on 14 Jun 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
This Gallery from files WordPress plugin through 1.6.0 gives the functionality of uploading images to the server. But filenames are not properly sanitized before being output in an error message when they have an invalid extension, leading to a reflected Cross-Site Scripting issue. Due to the lack of CSRF check, the attack could also be performed via such vector.
Which versions are affected by CVE-2021-24349?
It affects 1 product.
Products include Gallery From Files Project Gallery From Files.
How do I fix CVE-2021-24349?
No fix has been published for CVE-2021-24349 yet. Limit exposure of the affected software until one is available.
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-24349 being exploited?
There is no known exploitation of CVE-2021-24349 in the wild and no public exploit code.
Sources
Also known as GHSA-f672-mxfg-3p82.