CVE-2021-24750 WP Visitor Statistics (Real Time Traffic) < 4.8 - Subscriber+ SQL Injection

High 8.8 Published Updated

Authenticated subscribers can perform SQL injection via the refUrl parameter in the WP Visitor Statistics plugin, potentially exposing or modifying database content.

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

What is CVE-2021-24750?

CVE-2021-24750 is a high-severity SQL injection vulnerability in Unknown WP Visitor Statistics (Real Time Traffic), published on 21 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The WP Visitor Statistics (Real Time Traffic) WordPress plugin before 4.8 does not properly sanitise and escape the refUrl in the refDetails AJAX action, available to any authenticated user, which could allow users with a role as low as subscriber to perform SQL injection attacks

Weakness: CWE-89

Which versions are affected by CVE-2021-24750?

It affects 1 product.

Products include Codepress Visitor Statistics.

How do I fix CVE-2021-24750?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24750 exists.

Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-p934-c89c-rc2m.

Is CVE-2021-24750 in your software?

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

Check your SBOMs for free