CVE-2021-25070 WP Block and Stop Bad Bots < 6.88 - Unauthenticated SQLi

Critical 9.8 Published Updated

Unauthenticated attackers can inject SQL commands via the User Agent header in the Block Bad Bots plugin, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-25070?

CVE-2021-25070 is a critical SQL injection vulnerability in Unknown Block Bad Bots and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection, published on 28 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Block Bad Bots WordPress plugin before 6.88 does not properly sanitise and escape the User Agent before using it in a SQL statement to record logs, leading to an SQL Injection issue

Weakness: CWE-89

Which versions are affected by CVE-2021-25070?

It affects 1 product.

Products include Stopbadbots Block and Stop Bad Bots.

How do I fix CVE-2021-25070?

No fix has been published for CVE-2021-25070 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-25070 being exploited?

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

Sources

Also known as GHSA-4qw3-m7w5-cr2v.

Is CVE-2021-25070 in your software?

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

Check your SBOMs for free