CVE-2021-24535 Light Messages <= 1.0 - CSRF to Stored XSS
An attacker can trick an admin into updating settings to inject a stored XSS payload, potentially leading to code execution or account takeover.
- 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-24535?
CVE-2021-24535 is a medium-severity cross-site scripting vulnerability in Unknown Light Messages, published on 16 Aug 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 Light Messages WordPress plugin through 1.0 is lacking CSRF check when updating it's settings, and is not sanitising its Message Content in them (even with the unfiltered_html disallowed). As a result, an attacker could make a logged in admin update the settings to arbitrary values, and set a Cross-Site Scripting payload in the Message Content. Depending on the options set, the XSS payload can be triggered either in the backend only (in the plugin's settings), or both frontend and backend.
Which versions are affected by CVE-2021-24535?
It affects 1 product.
Products include Light Messages Project Light Messages.
How do I fix CVE-2021-24535?
No fix has been published for CVE-2021-24535 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-24535 being exploited?
There is no known exploitation of CVE-2021-24535 in the wild and no public exploit code.
Sources
Also known as GHSA-6g8x-82fh-m598.