CVE-2021-25106 WPLegalPages < 2.7.1 - Subscriber+ Arbitrary Settings Update to Stored XSS

Medium 5.4 Published Updated

Authenticated users can inject malicious scripts into plugin settings due to missing authorization and sanitization, leading to stored XSS.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-25106?

CVE-2021-25106 is a medium-severity cross-site scripting vulnerability in Unknown Privacy Policy Generator, Terms & Conditions Generator WordPress Plugin : WPLegalPages, published on 7 Feb 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The Privacy Policy Generator, Terms & Conditions Generator WordPress Plugin : WPLegalPages WordPress plugin before 2.7.1 does not check for authorisation and has a flawed CSRF logic when saving its settings, allowing any authenticated users, such as subscriber, to update them. Furthermore, due to the lack of sanitisation and escaping, it could lead to Stored Cross-Site Scripting

Weakness: CWE-79

Which versions are affected by CVE-2021-25106?

It affects 1 product.

Products include Wpeka Wplegalpages.

How do I fix CVE-2021-25106?

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

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

Sources

Also known as GHSA-h2hg-rvg6-p5x3.

Is CVE-2021-25106 in your software?

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

Check your SBOMs for free