PT-2018-14497 · Thinkphp · Thinkphp
Kingkk
·
Published
2018-10-19
·
Updated
2022-05-14
·
CVE-2018-18530
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 5.1.25
Description
The issue is related to SQL Injection via the
count parameter. This occurs because the library/think/db/Query.php aggregate function mishandles the aggregate variable. The attack requires a backquote character in the attack URI.Recommendations
For ThinkPHP version 5.1.25, consider restricting access to the
count parameter in the affected API endpoint until a patch is available. As a temporary workaround, avoid using the count parameter in queries to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Thinkphp