CVE-2021-24431 Language Bar Flags <= 1.0.8 - CSRF to Stored XSS
Attackers can inject malicious scripts via CSRF in admin settings, leading to stored XSS execution for all frontend users.
- 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-24431?
CVE-2021-24431 is a medium-severity cross-site scripting vulnerability in Unknown Language Bar Flags, published on 13 Sep 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
The Language Bar Flags WordPress plugin through 1.0.8 does not have any CSRF in place when saving its settings and did not sanitise or escape them when generating the flag bar in the frontend. This could allow attackers to make a logged in admin change the settings, and set Cross-Site Scripting payload in them, which will be executed in the frontend for all users
Which versions are affected by CVE-2021-24431?
It affects 1 product.
Products include Language Bar Flags Project Language Bar Flags.
How do I fix CVE-2021-24431?
No fix has been published for CVE-2021-24431 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-24431 being exploited?
There is no known exploitation of CVE-2021-24431 in the wild and no public exploit code.
Sources
Also known as GHSA-32wp-2wg5-3q9c.