GHSA-8c8c-4vfj-rrpc: Redis commander Cross-Site Scripting Vulnerability

LOW
CWE-79
Published
Advisory Summary

GHSA-8c8c-4vfj-rrpc is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Redis commander libraries in the npm ecosystem. The issue involves reflected cross-site scripting in redis-commander. Remediation is available by upgrading affected packages to version 0.5.0.

GHSA-8c8c-4vfj-rrpc at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8c8c-4vfj-rrpc
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Redis commander
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-8c8c-4vfj-rrpc

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

redis-commander fixed: 0.5.0
npm install redis-commander@0.5.0
Verify Direct and Transitive Dependencies

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

npm ls redis-commander

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-8c8c-4vfj-rrpc, inspect your project dependencies using npm:

npm ls redis-commander

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

Note: The npm ls redis-commander command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

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 Redis commander, 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

Affected versions of `redis-commander` contain a cross-site scripting vulnerability in the `highlighterId` paramter of the clipboard.swf component on hosts serving Redis Commander. Mitigating factors: Flash must be installed / enabled for this to work. The below proof of concept was verified to work using Firefox 57.0 on Windows 10 by manually installing the [Flash NPAPI Windows plugin](https://get.adobe.com/flashplayer/otherversions/) ## Proof of concept ``` http://instance/jstree/_docs/syntax/clipboard.swf?highlighterId=\%22))}%20catch(e)%20{alert(document.domain);}// ``` ## Recommendation No direct patch for this vulnerability is currently available. At this time, the best mitigation is to use an alternative, functionally equivalent package, or to use extreme caution when using redis-commander, ensuring that redis-commmander is the only web page you have open, and avoiding clicking on any links.

GHSA-8c8c-4vfj-rrpc Affected Redis commander Versions

1 component(s)
Fixed Versions:
0.5.0
Product / Package Ecosystem Affected Versions Fixed Version
redis-commander
npm
≥ 0.0.0
< 0.5.0
0.5.0

References

Frequently Asked Questions

What is GHSA-8c8c-4vfj-rrpc?
GHSA-8c8c-4vfj-rrpc is a security vulnerability in Redis commander involving Reflected Cross-Site Scripting in redis-commander under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Redis commander versions are affected?
Affected versions include releases prior to 0.5.0 across affected packages: redis-commander.
What version fixes GHSA-8c8c-4vfj-rrpc?
Upgrading to 0.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is redis-commander affected?
Yes, redis-commander is affected in releases prior to 0.5.0. Upgrade your dependency to 0.5.0 or later.
What CWE is associated with GHSA-8c8c-4vfj-rrpc?
GHSA-8c8c-4vfj-rrpc 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 npm dependencies for GHSA-8c8c-4vfj-rrpc?
Run the dependency tree command: 'npm ls redis-commander'. 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-8c8c-4vfj-rrpc",
  "modified" : "2022-03-04T22:02:50Z",
  "published" : "2020-09-01T19:05:11Z",
  "aliases" : [ ],
  "summary" : "Reflected Cross-Site Scripting in redis-commander",
  "details" : "Affected versions of `redis-commander` contain a cross-site scripting vulnerability in the `highlighterId` paramter of the clipboard.swf component on hosts serving Redis Commander.\n\nMitigating factors:\nFlash must be installed / enabled for this to work. The below proof of concept was verified to work using Firefox 57.0 on Windows 10 by manually installing the [Flash NPAPI Windows plugin](https://get.adobe.com/flashplayer/otherversions/)\n\n## Proof of concept\n\n```\nhttp://instance/jstree/_docs/syntax/clipboard.swf?highlighterId=\\%22))}%20catch(e)%20{alert(document.domain);}//\n```\n\n\n## Recommendation\n\nNo direct patch for this vulnerability is currently available.\n\nAt this time, the best mitigation is to use an alternative, functionally equivalent package, or to use extreme caution when using redis-commander, ensuring that redis-commmander is the only web page you have open, and avoiding clicking on any links.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "redis-commander"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0"
      }, {
        "fixed" : "0.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/joeferner/redis-commander/commit/1a483ebb3a706cf199dd283cf0aead96606adb14"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/296377"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/joeferner/redis-commander"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/joeferner/redis-commander/releases/tag/v0.5.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/advisories/562"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:27:52Z",
    "nvd_published_at" : null
  }
}