CVE-2020-26249: Red dashboard Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-hm45-mgqm-gjm4
CVSS 7.7
CWE-79
Published
Advisory Summary

CVE-2020-26249 is a MODERATE (CVSS 7.7) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Red dashboard libraries in the PyPI ecosystem. The issue involves remote code execution (rce) exploit on cross site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 0.1.7a.

CVE-2020-26249 at a Glance

CVE Identifier CVE-2020-26249
GHSA Identifier GHSA-hm45-mgqm-gjm4
Severity MODERATE
CVSS v3.1 Base Score 7.7
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Red dashboard
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2020-26249

To remediate this vulnerability, upgrade all affected Red dashboard dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

red-dashboard fixed: 0.1.7a
pip install red-dashboard>=0.1.7a
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show red-dashboard

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2020-26249, inspect your installed packages using pip:

pip show red-dashboard

Analyze the terminal output to locate any version of Red dashboard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.1.7a), your application is affected.

Note: The pip show red-dashboard command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Red dashboard, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact A RCE exploit has been discovered in the Red Discord Bot - Dashboard Webserver: this exploit allows Discord users with specially crafted Server names and Usernames/Nicknames to inject code into the webserver front-end code. By abusing this exploit, it's possible to perform destructive actions and/or access sensitive information. ### Patches This high severity exploit has been fixed on version `0.1.7a`. ### Workarounds There are no workarounds, bot owners must upgrade their relevant packages (Dashboard module and Dashboard webserver) in order to patch this issue ### References - 99d88b8 - a6b9785 ### For more information If you have any questions or comments about this advisory: * Open an issue in [Cog-Creators/Red-Dashboard](https://github.com/Cog-Creators/Red-Dashboard/issues/new/choose) * Over on the official [Red Server](https://discord.gg/red) or at the Third Party Server [Toxic Layer](https://discord.gg/vQZTdB9)

CVE-2020-26249 Affected Red dashboard Versions

1 component(s)
Fixed Versions:
0.1.7a
Product / Package Ecosystem Affected Versions Fixed Version
red-dashboard
PyPI
< 0.1.7a
0.1.7a

References

Frequently Asked Questions

What is CVE-2020-26249?
CVE-2020-26249 is a security vulnerability in Red dashboard involving Remote Code Execution (RCE) Exploit on Cross Site Scripting (XSS) Vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Red dashboard versions are affected?
Affected versions include releases prior to 0.1.7a across affected packages: red-dashboard.
What version fixes CVE-2020-26249?
Upgrading to 0.1.7a (or the latest patched release for your respective branch) resolves the vulnerability.
Is red-dashboard affected?
Yes, red-dashboard is affected in releases prior to 0.1.7a. Upgrade your dependency to 0.1.7a or later.
What is the CVSS score of CVE-2020-26249?
CVE-2020-26249 has a CVSS v3.1 base score of 7.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2020-26249?
CVE-2020-26249 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2020-26249?
Run the dependency tree command: 'pip show red-dashboard'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hm45-mgqm-gjm4",
  "modified" : "2024-10-25T21:50:10Z",
  "published" : "2020-12-08T23:55:54Z",
  "aliases" : [ "CVE-2020-26249" ],
  "summary" : "Remote Code Execution (RCE) Exploit on Cross Site Scripting (XSS) Vulnerability",
  "details" : "### Impact\nA RCE exploit has been discovered in the Red Discord Bot - Dashboard Webserver: this exploit allows Discord users with specially crafted Server names and Usernames/Nicknames to inject code into the webserver front-end code.  By abusing this exploit, it's possible to perform destructive actions and/or access sensitive information.\n\n### Patches\nThis high severity exploit has been fixed on version `0.1.7a`.\n\n### Workarounds\nThere are no workarounds, bot owners must upgrade their relevant packages (Dashboard module and Dashboard webserver) in order to patch this issue\n\n### References\n- 99d88b8\n- a6b9785\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Cog-Creators/Red-Dashboard](https://github.com/Cog-Creators/Red-Dashboard/issues/new/choose)\n* Over on the official [Red Server](https://discord.gg/red) or at the Third Party Server [Toxic Layer](https://discord.gg/vQZTdB9)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "red-dashboard"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.1.7a"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.1.6a"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Cog-Creators/Red-Dashboard/security/advisories/GHSA-hm45-mgqm-gjm4"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26249"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Cog-Creators/Red-Dashboard/commit/99d88b840674674166ce005b784ae8e31e955ab1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Cog-Creators/Red-Dashboard/commit/a6b9785338003ec87fb75305e7d1cc2d40c7ab91"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Cog-Creators/Red-Dashboard"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/red-dashboard/PYSEC-2020-98.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/Red-Dashboard"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-12-08T23:55:41Z",
    "nvd_published_at" : null
  }
}