CVE-2021-24939 LoginWP < 3.0.0.5 - Reflected Cross-Site Scripting

Medium 6.1 Published Updated

Attackers can inject malicious scripts via unsanitized URL parameters in the LoginWP WordPress plugin admin page, potentially leading to session hijacking or code execution.

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-24939?

CVE-2021-24939 is a medium-severity cross-site scripting vulnerability in Unknown LoginWP (Formerly Peter's Login Redirect), published on 6 Dec 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 LoginWP (Formerly Peter's Login Redirect) WordPress plugin before 3.0.0.5 does not sanitise and escape the rul_login_url and rul_logout_url parameter before outputting them back in attributes in an admin page, leading to a Reflected Cross-Site Scripting issue

Weakness: CWE-79

Which versions are affected by CVE-2021-24939?

It affects 1 product.

Products include Profilepress Loginwp.

How do I fix CVE-2021-24939?

No fix has been published for CVE-2021-24939 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-24939 being exploited?

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

Sources

Also known as GHSA-8rq5-r7hg-52gr.

Is CVE-2021-24939 in your software?

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

Check your SBOMs for free