CVE-2020-24912: Reflected XSS Vulnerability in qcubed

qcubed/qcubed Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
6.1

CVE-2020-24912: qcubed reflected cross-site scripting (XSS) vulnerability. Affects qcubed/qcubed versions < 3.2. Fixed in 3.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

qcubed is an open-source PHP framework that provides a rapid development environment for building web applications. It offers a range of features and components to simplify the development process and enhance productivity. The framework is widely used and has a large community of developers contributing to its growth and improvement. However, a vulnerability has been discovered in qcubed that allows for a reflected cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability in qcubed (all versions including 3.1.1) resides in the 'profile.php' file, specifically in the 'stQuery' parameter. This parameter is not properly sanitized, allowing unauthenticated attackers to inject malicious scripts into the application. When a user with an active session visits a page that includes the vulnerable parameter, the injected script will be executed in the context of the user's session, potentially leading to session hijacking and unauthorized access to sensitive information. The impact of this vulnerability can be significant, as it can compromise the security and integrity of the affected application.

How To Fix

Minimum fixed version

3.2

This is the first release that contains the fix.

composer require qcubed/qcubed:3.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually sanitizing the 'stQuery' parameter in the 'profile.php' file. This can be done by using appropriate input filtering and validation functions to remove any potentially malicious scripts. Here is an example of how the 'stQuery' parameter can be sanitized:

$stQuery = filter_input(INPUT_GET, 'stQuery', FILTER_SANITIZE_STRING);

Conclusion

The reflected XSS vulnerability in qcubed poses a significant risk to the security and integrity of affected applications. It is crucial for users to upgrade to the latest version of qcubed (3.2 or later) to ensure that their applications are protected against this vulnerability. In the meantime, implementing the provided workaround can help mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for qcubed/qcubed →

Share this vulnerability

FAQ

The vulnerability allows unauthenticated attackers to execute arbitrary scripts in the context of a user's session, potentially leading to session hijacking and unauthorized access to sensitive information.

All versions of qcubed up to and including 3.1.1 are affected by this vulnerability.

Yes, upgrading to version 3.2 or later of qcubed will fix this vulnerability.

A temporary workaround is to manually sanitize the 'stQuery' parameter in the 'profile.php' file.

You can find more information about this vulnerability in the official GitHub advisory: [link to advisory]

Related vulnerabilities

Recent vulnerabilities recorded for qcubed/qcubed.

How To Fix

Minimum fixed version

3.2

This is the first release that contains the fix.

composer require qcubed/qcubed:3.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback