Vulnerability · Published Apr 4, 2024 · Assigned by GitHub_M
CVE-2024-31212SQL injection in index_chart_data action
Medium 6.7
In plain English
A medium-severity SQL injection in icms2 from instantsoft. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 58% of all known vulnerabilities).
Official description
InstantCMS is a free and open source content management system. A SQL injection vulnerability affects instantcms v2.16.2 in which an attacker with administrative privileges can cause the application to execute unauthorized SQL code. The vulnerability exists in index_chart_data action, which receives an input from user and passes it unsanitized to the core model `filterFunc` function that further embeds this data in an SQL statement. This allows attackers to inject unwanted SQL code into the statement. The `period` should be escaped before inserting it in the query. As of time of publication, a patched version is not available.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| instantsoft | icms2 | = 2.16.2 |
Weakness: CWE-89, CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L
References
- https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw x_refsource_CONFIRM
- https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190 x_refsource_MISC
- https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744 x_refsource_MISC
- https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png x_refsource_MISC