CVE-2024-2387 SQL injection in AFI – The Easiest Integration Plugin

Medium 6.1 Published Updated

Unauthenticated attackers can inject SQL and scripts via the integration_id parameter, risking data theft and script execution.

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-2024-2387?

CVE-2024-2387 is a medium-severity SQL injection vulnerability in nasirahmed AFI – The Easiest Integration Plugin, published on 20 Mar 2024. 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 Advanced Form Integration – Connect WooCommerce and Contact Form 7 to Google Sheets and other platforms plugin for WordPress is vulnerable to SQL Injection via the ‘integration_id’ parameter in all versions up to, and including, 1.82.0 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries and subsequently inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Weakness: CWE-89

Which versions are affected by CVE-2024-2387?

How do I fix CVE-2024-2387?

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

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-h396-qp5c-h728.

Is CVE-2024-2387 in your software?

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

Check your SBOMs for free