CVE-2021-24863 StopBadBots < 6.67 - Unauthenticated SQL Injection

Critical 9.8 Published Updated

Unauthenticated attackers can inject SQL commands via the User Agent header in the StopBadBots WordPress 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-24863?

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

Official description

The WP Block and Stop Bad Bots Crawlers and Spiders and Anti Spam Protection Plugin StopBadBots WordPress plugin before 6.67 does not sanitise and escape the User Agent before using it in a SQL statement to save it, leading to a SQL injection

Weakness: CWE-89

Which versions are affected by CVE-2021-24863?

It affects 1 product.

Products include Billminozzi Stop Bad Bots.

How do I fix CVE-2021-24863?

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

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

Sources

Also known as GHSA-7pv6-jghj-vwmc.

Is CVE-2021-24863 in your software?

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

Check your SBOMs for free