Lucene search
+L

QCubed 3.1.1 SQL Injection

🗓️ 12 Mar 2021 00:00:00Reported by Wolfgang HotwagnerType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 332 Views

QCubed 3.1.1 SQL injection vulnerability allows unauthenticated remote database acces

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
QCubed 3.1.1 Cross Site Scripting Vulnerability
13 Mar 202100:00
zdt
zdt
zdt
QCubed 3.1.1 SQL Injection Vulnerability
13 Mar 202100:00
zdt
circl
Circl
CVE-2020-24913
4 Mar 202116:46
circl
cnnvd
CNNVD
Matthias Van Woensel qcubed SQL注入漏洞
4 Mar 202100:00
cnnvd
cve
CVE
CVE-2020-24913
4 Mar 202112:31
cve
cvelist
Cvelist
CVE-2020-24913
4 Mar 202112:31
cvelist
github
Github Security Blog
qcubed SQL injection vulnerability in profile.php via the strQuery parameter
24 May 202217:43
github
kitploit
Kitploit
CVE-2020-24913-PoC
31 Aug 202621:31
kitploit
kitploit
Kitploit
CVE-2020-24913-exploit
27 Aug 202600:29
kitploit
nvd
NVD
CVE-2020-24913
4 Mar 202113:15
nvd
Rows per page
`QCubed SQL Injection  
==================  
  
| Identifier: | AIT-SA-20210215-02 |  
| Target: | QCubed Framework |  
| Vendor: | QCubed |  
| Version: | all versions including 3.1.1 |  
| CVE: | CVE-2020-24913 |  
| Accessibility: | Remote |  
| Severity: | Critical |  
| Author: | Wolfgang Hotwagner (AIT Austrian Institute of Technology) |  
  
SUMMARY  
=======  
QCubed is a PHP Model-View-Controller Rappid Application Development framework. (https://github.com/qcubed/qcubed)  
  
VULNERABILITY DESCRIPTION  
=========================  
A SQL injection vulnerability in qcubed (all versions including 3.1.1) in profile.php via the strQuery parameter allows an unauthenticated attacker to access the database by injecting SQL code via a crafted POST request. The strQuery parameter of the serialized array in profile.php could lead to a sql-injection. This parameter is used by the PrintExplainStatement which simply concats "EXPLAIN ." with this parameter:  
  
public function ExplainStatement($sql) {  
return $this->Query("EXPLAIN " . $sql);  
}  
  
  
This query will be executed unfiltered.  
  
We were able to write proof-of concept exploit for mysql and postgres. Unfortunately with mysql we were not able to use a stacked-queries-payload and we had to exploit this vulnerability with a timebased approach.  
  
  
VULNERABLE VERSIONS  
===================  
All versions including 3.1.1 are affected.  
  
  
TESTED VERSIONS  
===============  
QCubed 3.1.1  
  
IMPACT  
======  
An unauthenticated attacker could access the database remotely. In worst case scenarios an attacker might be able to execute code on the remote machine  
  
MITIGATION  
==========  
  
A patch was delivered by QCubed that allows to disable the profile-functionality( https://github.com/qcubed/qcubed/pull/1320/files ).  
  
VENDOR CONTACT TIMELINE  
=======================   
  
| 2020-04-19 | Contacting the vendor |  
| 2020-04-19 | Vendor replied |  
| 2020-05-01 | Vendor released a patch at Github |  
| 2021-02-15 | Public disclosure |  
  
ADVISORY URL  
============  
  
[https://www.ait.ac.at/ait-sa-20210215-02-unauthenticated-sql-injection-qcubed](https://www.ait.ac.at/ait-sa-20210215-02-unauthenticated-sql-injection-qcubed)  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

12 Mar 2021 00:00Current
9.6High risk
Vulners AI Score9.6
EPSS0.40886
332