漏洞描述
GLPI versions before 10.0.26 and 11.0.8 are vulnerable to a blind SQL injection in the history log filter. The Log::convertFiltersValuesToSqlCriteria() function splits the affected_fields filter into key:operator:value parts and DBmysqlIterator::analyseCrit() does not quote OR, AND and NOT as column names, allowing an authenticated user with logs READ right to inject arbitrary SQL. Verified against glpi/glpi:10.0.25 (Docker + MariaDB): filter "OR::1 AND sleep(5)" produces "... AND (((((1 AND sleep(5))))))" in the query and the request takes ~5s. On 10.0.26 the same payload is rejected (~30ms).
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/glpi-project/glpi/security/advisories/GHSA-cpcj-x335-5cmh↗github.comhttps://github.com/glpi-project/glpi/commit/1296798fb03295d07c1d97fa8483d1dbab59fef5↗github.comhttps://github.com/glpi-project/glpi/commit/80b86c0dcad2f6ece9b5da445d1c264a1dda3ce5↗github.comhttps://github.com/glpi-project/glpi/releases/tag/10.0.26↗github.comhttps://github.com/glpi-project/glpi/releases/tag/11.0.8↗