Concrete5 <= Multiple Vulnerabilities

ID 1337DAY-ID-16973
Type zdt
Reporter Ryan Dewhurst
Modified 2011-10-03T00:00:00


Exploit for php platform in category web applications

                                            # Exploit Title: Concrete5 <= SQL Injection and XSS Vulnerabilities
# Date: 2011-10-04
# Author: Ryan Dewhurst (ryandewhurst at gmail) (@ethicalhack3r)
# Software Link:
# Version: (tested)
1.Vulnerability Description
Multiple SQL Injection, Cross-Site Scripting (XSS) and Information
Disclosure vulnerabilities were identified within Concrete5 version
Please note: 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.Software Description
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)
BENCHMARK(1000000,MD5(1)) FROM btSurveyResults where CURRENT_USER()
like '[email protected]' limit 1) --
4.Vulnerable code
File: concrete/controllers/dashboard/reports/surveys.php
class SurveyList extends DatabaseItemList {
        protected $itemsPerPage = 10;
        protected $autoSortColumns = array('cvName', 'question',
'numberOfResponses', 'lastResponse');
        function __construct() {
                           '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,
                $this->filter(false, 'btSurvey.bID =
                $this->filter(false, 'CollectionVersions.cID =
                $this->filter(false, 'CollectionVersionBlocks.cvID =
                $this->filter(false, 'CollectionVersions.cvIsApproved = 1');
                $this->userPostQuery .= 'group by btSurvey.bID,
5.Cross-Site Scripting (XSS)
Parameter: rcID
Method: POST
PoC: "><script>alert(1)</script>
6.Vulnerable Code
File: concrete/single_pages/login.php:
<input type="hidden" name="rcID" value="<?php echo $rcID?>" />
7.Full Path Disclosure (FPD)
8.Vulnerability Timeline
2011-09-06 - Reported to vendor
2011-09-06 - Vendor Reply
2011-09-07 - Vendor Acknowledge Vulnerabilities and asked for
assistance patching. No assistance given apart from the initial report
due to time constraints.
2011-10-04 - Vulnerability Disclosed

# [2018-04-12]  #