CVE-2018-18529

ThinkPHP 3.2.4 has SQL Injection via the count parameter because the Library/Think/Db/Driver/Mysql.class.php parseKey function mishandles the key variable

published October 19, 2018

CVSS
โ€”
EPSS
1%
Percentile
67.8
In the wild
Unconfirmed
What it is

โš ๏ธ A single rogue query could exploit this SQL injection! ThinkPHP 3.2.4 is vulnerable through the count parameter, exposing your app to potential chaos! ๐Ÿ”ฅ Imagine a restaurant where anyone can sneak their own ingredients into the kitchen โ€” the chef never checks orders, allowing unsanitary items to spoil the whole dish. This SQL injection is just as sneaky, letting unwanted SQL commands creep in through an unchecked input. An attacker could manipulate database queries, leading to unauthorized data access or even data manipulation. This could result in a complete loss of data integrity and trustworthiness, which is absolutely devastating for your application!

Put simply

Imagine a restaurant where anyone can sneak their own ingredients into the kitchen โ€” the chef never checks orders, allowing unsanitary items to spoil the whole dish. This SQL injection is just as sneaky, letting unwanted SQL commands creep in through an unchecked input. This vulnerability arises from the mishandling of the key variable in the parseKey function of ThinkPHP's MySQL driver, allowing SQL injection via the count parameter without needing a backquote character in the attack URI.

What to do

An attacker could manipulate database queries, leading to unauthorized data access or even data manipulation. This could result in a complete loss of data integrity and trustworthiness, which is absolutely devastating for your application! Immediately upgrade to the latest version of ThinkPHP to patch this vulnerability. Additionally, ensure that all user inputs are sanitized and validated before being processed by your application. Regular audits of your database interactions are also essential! You've got this! Fixing this issue will keep your app safe and sound! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01202 ยท 67.8th percentile
Published
2018-10-19T20:00Z
EPSS history
Timeline
  • 19 OCT 20:00Z
    ThinkPHP 3.2.4 has SQL Injection via the count parameter because the Library/Think/Db/Driver/Mysql.class.php parseKey function mishandles the key variable
    cvelistv5