CVE-2018-7269

The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15 allows remote attackers to conduct SQL injection attacks via a findOne()…

published March 21, 2018

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

⚠️ A single overlooked input can turn a harmless query into a full-blown SQL injection attack! 💥 Think of the findByCondition function as a restaurant where the chef blindly accepts any ingredient delivered without checking for quality. If the order isn't properly sanitized, it's like serving a dish that could poison the entire dinner party! An attacker could exploit this vulnerability to execute malicious SQL statements, potentially accessing, modifying, or even deleting sensitive data. Imagine them sneaking in and making off with the whole dessert menu, leaving your database in disarray!

Put simply

Think of the findByCondition function as a restaurant where the chef blindly accepts any ingredient delivered without checking for quality. If the order isn't properly sanitized, it's like serving a dish that could poison the entire dinner party! This vulnerability exists in the findByCondition function of Yii 2.x up to version 2.0.15, where it is vulnerable to SQL injection via findOne() or findAll() calls due to unsanitized array input.

What to do

An attacker could exploit this vulnerability to execute malicious SQL statements, potentially accessing, modifying, or even deleting sensitive data. Imagine them sneaking in and making off with the whole dessert menu, leaving your database in disarray! To protect your application, update Yii to version 2.0.15 or later immediately. Additionally, ensure that you implement input sanitization practices throughout your code to safeguard against SQL injection attacks. You've got this! Take these steps, and you'll have your application locked down like a pro! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01897 · 79.4th percentile
Published
2018-03-21T18:00Z
EPSS history
Timeline
  • 21 MAR 18:00Z
    The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15 allows remote attackers to conduct SQL injection attacks via a findOne()…
    cvelistv5