CVE-2024-31212 SQL injection in index_chart_data action
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
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.
Upgrade path
3 packages: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| instantcms | = 2.16.2 | No fix listed | Versions listed |
| instantcms icms2 | = 2.16.2 | No fix listed | Versions listed |
| instantsoft icms2 | = = 2.16.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| instantsoft icms2 | = = 2.16.2 | No fix listed |
| instantcms icms2 | = 2.16.2 | No fix listed |
| instantcms | = 2.16.2 | No fix listed |
References
- https://github.com/instantsoft/icms2/security/advisories/GHSA-qx95-w566-73fw exploit vendor-advisory
- https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/controllers/admin/actions/index_chart_data.php#L190 product
- https://github.com/instantsoft/icms2/blob/4691a1524780e74107f6009b48d91e17a81b0fa1/system/core/model.php#L744 product
- https://user-images.githubusercontent.com/109034767/300806111-a33d9548-d99f-4034-bef3-fbd7fa62c37f.png permissions-required