CVE-2021-24570 Paypal Donation < 1.3.1 - CSRF to Stored Cross-Site Scripting

Medium 4.3 Published Updated

An attacker can exploit a CSRF vulnerability to inject stored XSS payloads via donation buttons, potentially compromising admin sessions.

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

CVE-2021-24570 is a medium-severity cross-site scripting vulnerability in Unknown Accept Donations with PayPal, published on 1 Nov 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 Accept Donations with PayPal WordPress plugin before 1.3.1 offers a function to create donation buttons, which internally are posts. The process to create a new button is lacking a CSRF check. An attacker could use this to make an authenticated admin create a new button. Furthermore, one of the Button field is not escaped before being output in an attribute when editing a Button, leading to a Stored Cross-Site Scripting issue as well.

Weakness: CWE-79, CWE-352

Which versions are affected by CVE-2021-24570?

It affects 1 product.

Products include Wpplugin Accept Donations With Paypal.

How do I fix CVE-2021-24570?

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

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

Sources

Also known as GHSA-8825-wr78-6h2r.

Is CVE-2021-24570 in your software?

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

Check your SBOMs for free