CVE-2022-30478

Ecommerce-project-with-php-and-mysqli-Fruits-Bazar 1.0 is vulnerable to SQL Injection in \search_product.php via the keyword parameters

published May 31, 2022

CVSS
—
EPSS
2%
Percentile
75.4
In the wild
Unconfirmed
What it is

⚠️ An unsuspecting user can trigger an SQL injection by simply searching for a product! This vulnerability in Fruits Bazar 1.0 might just let a crafty attacker meddle with your database. 🔥 Think of this as a customer at a fruit stand who, upon asking for a specific type of apple, accidentally knocks over a shelf of produce due to a poorly placed stack. Instead of just getting their apples, they end up creating chaos in the entire stand! If exploited, an attacker could craft a malicious search query that alters the database, revealing sensitive customer data or even deleting crucial records. Imagine the shock of discovering that all your inventory lists have vanished overnight, or worse, customer data has been leaked!

Put simply

Think of this as a customer at a fruit stand who, upon asking for a specific type of apple, accidentally knocks over a shelf of produce due to a poorly placed stack. Instead of just getting their apples, they end up creating chaos in the entire stand! This SQL injection vulnerability occurs in the `search_product.php` file, where user input through the keyword parameter isn't properly sanitized, allowing attackers to execute unauthorized SQL commands directly against the database.

What to do

If exploited, an attacker could craft a malicious search query that alters the database, revealing sensitive customer data or even deleting crucial records. Imagine the shock of discovering that all your inventory lists have vanished overnight, or worse, customer data has been leaked! To safeguard against this vulnerability, update to the latest version of Fruits Bazar if available, and ensure that all user inputs are correctly sanitized and validated to prevent SQL injection. Implement prepared statements for database queries as an added layer of security. You've got this! With the right steps in place, you can secure your application and keep your users safe. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01583 · 75.4th percentile
Published
2022-05-31T20:51Z
EPSS history
Timeline
  • 31 MAY 20:51Z
    Ecommerce-project-with-php-and-mysqli-Fruits-Bazar 1.0 is vulnerable to SQL Injection in \search_product.php via the keyword parameters
    cvelistv5