PT-2018-14496 · Thinkphp · Thinkphp
Kingkk
·
Published
2018-10-19
·
Updated
2022-05-14
·
CVE-2018-18529
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
ThinkPHP version 3.2.4
Description
The issue is related to SQL Injection via the
count parameter. This occurs because the parseKey function in the Library/Think/Db/Driver/Mysql.class.php file mishandles the key variable. It is noted that a backquote character is not required in the attack URI.Recommendations
For ThinkPHP version 3.2.4, consider restricting access to the
count parameter to minimize the risk of SQL Injection until a patch is available. As a temporary workaround, avoid using the parseKey function in the Library/Think/Db/Driver/Mysql.class.php file until the issue is resolved.Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Thinkphp