<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="chinese">
	<id>https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=CVE-2020-24913_QCubed_3.11_SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E</id>
	<title>CVE-2020-24913 QCubed 3.11 SQL注入漏洞 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwnwiki.com/index.php?action=history&amp;feed=atom&amp;title=CVE-2020-24913_QCubed_3.11_SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E"/>
	<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=CVE-2020-24913_QCubed_3.11_SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;action=history"/>
	<updated>2026-04-17T11:06:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://pwnwiki.com/index.php?title=CVE-2020-24913_QCubed_3.11_SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=3624&amp;oldid=prev</id>
		<title>Pwnwiki: Created page with &quot;&lt;pre&gt; QCubed SQL Injection ==================  | Identifier: | AIT-SA-20210215-02 | | Target: | QCubed Framework | | Vendor: | QCubed | | Version: | all versions including 3.1...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwnwiki.com/index.php?title=CVE-2020-24913_QCubed_3.11_SQL%E6%B3%A8%E5%85%A5%E6%BC%8F%E6%B4%9E&amp;diff=3624&amp;oldid=prev"/>
		<updated>2021-05-30T02:37:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; QCubed SQL Injection ==================  | Identifier: | AIT-SA-20210215-02 | | Target: | QCubed Framework | | Vendor: | QCubed | | Version: | all versions including 3.1...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
QCubed SQL Injection&lt;br /&gt;
==================&lt;br /&gt;
&lt;br /&gt;
| Identifier: | AIT-SA-20210215-02 |&lt;br /&gt;
| Target: | QCubed Framework |&lt;br /&gt;
| Vendor: | QCubed |&lt;br /&gt;
| Version: | all versions including 3.1.1 |&lt;br /&gt;
| CVE: | CVE-2020-24913 |&lt;br /&gt;
| Accessibility: | Remote |&lt;br /&gt;
| Severity: | Critical |&lt;br /&gt;
| Author: | Wolfgang Hotwagner (AIT Austrian Institute of Technology) |&lt;br /&gt;
&lt;br /&gt;
SUMMARY&lt;br /&gt;
=======&lt;br /&gt;
QCubed is a PHP Model-View-Controller Rappid Application Development framework. (https://github.com/qcubed/qcubed)&lt;br /&gt;
&lt;br /&gt;
VULNERABILITY DESCRIPTION&lt;br /&gt;
=========================&lt;br /&gt;
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 &amp;quot;EXPLAIN .&amp;quot; with this  parameter:&lt;br /&gt;
&lt;br /&gt;
public function ExplainStatement($sql) {&lt;br /&gt;
     return $this-&amp;gt;Query(&amp;quot;EXPLAIN &amp;quot; . $sql);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This query will be executed unfiltered.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VULNERABLE VERSIONS&lt;br /&gt;
===================&lt;br /&gt;
All versions including 3.1.1 are affected.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TESTED VERSIONS&lt;br /&gt;
===============&lt;br /&gt;
QCubed 3.1.1&lt;br /&gt;
&lt;br /&gt;
IMPACT&lt;br /&gt;
======&lt;br /&gt;
An unauthenticated attacker could  access the database remotely. In  worst case scenarios an attacker might be able to execute code on the  remote machine&lt;br /&gt;
&lt;br /&gt;
MITIGATION&lt;br /&gt;
==========&lt;br /&gt;
&lt;br /&gt;
A patch was delivered by QCubed that allows to disable the profile-functionality( https://github.com/qcubed/qcubed/pull/1320/files ).&lt;br /&gt;
&lt;br /&gt;
VENDOR CONTACT TIMELINE&lt;br /&gt;
=======================   &lt;br /&gt;
&lt;br /&gt;
| 2020-04-19 | Contacting the vendor |&lt;br /&gt;
| 2020-04-19 | Vendor replied |&lt;br /&gt;
| 2020-05-01 | Vendor released a patch at Github |&lt;br /&gt;
| 2021-02-15 | Public disclosure |&lt;br /&gt;
&lt;br /&gt;
ADVISORY URL&lt;br /&gt;
============&lt;br /&gt;
&lt;br /&gt;
[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)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pwnwiki</name></author>
	</entry>
</feed>