CVE-2018-17566

In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request

published September 26, 2018

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

⚠️ A single user's input in ThinkPHP could lead to a SQL injection! When the WHERE condition is influenced by a user request, an attacker can craft a sneaky query. 🔥 Think of this as a restaurant where diners can modify their orders; if the kitchen doesn't check what they're adding, a rogue customer could request something outrageous, potentially contaminating the entire menu! An attacker could exploit this vulnerability to manipulate database queries, gaining unauthorized access to sensitive information or even modifying data. This could lead to a complete data breach, with devastating consequences for the application's integrity.

Put simply

Think of this as a restaurant where diners can modify their orders; if the kitchen doesn't check what they're adding, a rogue customer could request something outrageous, potentially contaminating the entire menu! In ThinkPHP 5.1.24, the inner 'delete' function can be exploited to execute arbitrary SQL queries due to insufficient validation of user input in the WHERE clause.

What to do

An attacker could exploit this vulnerability to manipulate database queries, gaining unauthorized access to sensitive information or even modifying data. This could lead to a complete data breach, with devastating consequences for the application's integrity. To protect against this vulnerability, upgrade ThinkPHP to the latest version immediately. Implement input validation and prepared statements to ensure that user input cannot manipulate SQL queries. Regularly review and sanitize your application's database interactions. You've got this! Follow these steps to secure your application and maintain your security hero status! 🦸

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01537 · 74.7th percentile
Published
2018-09-26T21:00Z
EPSS history
Timeline
  • 26 SEP 21:00Z
    In ThinkPHP 5.1.24, the inner function delete can be used for SQL injection when its WHERE condition's value can be controlled by a user's request
    cvelistv5