Vulnerability DatabaseGHSA-r587-7jh2-4qr3

GHSA-r587-7jh2-4qr3
JavaScript vulnerability analysis and mitigation

Overview

A critical security vulnerability was discovered in the Flood software (versions >= 2.0.0, < 3.0.0) where the server JWT signing secret was inadvertently included in static assets and served to clients. The vulnerability was discovered and disclosed on August 24, 2020, affecting the Flood torrent client web interface. This security issue was tracked as GHSA-r587-7jh2-4qr3 (GitHub Advisory).

Technical details

The vulnerability originated when commit 8d11640b imported config.js to client frontend components to access the disableUsersAndAuth configuration variable. This resulted in the config.js contents, including the JWT signing secret, being compiled into static assets and served to users. The issue was particularly severe as it allowed attackers to bypass Flood's built-in authentication system by enabling them to sign their own authentication tokens (GitHub Advisory).

Impact

The vulnerability's impact was classified as Critical due to several factors. If exploited, it allowed bypassing Flood's built-in authentication system. This was particularly dangerous because Flood has access to rTorrent's SCGI interface (which is unprotected and allows arbitrary code execution) and typically has wide-ranging privileges to files. Combined with Flood's lack of security controls against authenticated users, this created a significant security risk (GitHub Advisory).

Exploitability

The vulnerability was exploitable by accessing the static assets served to clients, which contained the server's JWT signing secret. Attackers could use this secret to sign their own authentication tokens and bypass the built-in access control of Flood (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in version 3.0.0 through multiple commits. Commit 042cb4ce removed imports of config.js from client components and added an eslint rule to prevent future imports. Commit 103f53c8 implemented a general mitigation by adding checks to ensure the secret is not included in static assets before starting the server. For users unable to upgrade immediately, the recommended workaround was to use HTTP Basic Auth or other battle-hardened authentication methods instead of Flood's in-house authentication system. Users could also use the disableUsersAndAuth option to avoid duplicate authentication (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-26w7-cxv4-gfx2CRITICAL9.8
  • JavaScript logoJavaScript
  • astro
NoYesSep 08, 2026
GHSA-2x7j-588g-ccc2HIGH7.5
  • JavaScript logoJavaScript
  • nodemailer
NoYesSep 08, 2026
GHSA-2q42-4q24-7rgvHIGH7.1
  • JavaScript logoJavaScript
  • @typespec/compiler
NoNoSep 08, 2026
GHSA-wmmp-3585-3rmpMEDIUM6.5
  • JavaScript logoJavaScript
  • nodemailer
NoYesSep 08, 2026
GHSA-cc9r-2j5m-2m83MEDIUM6.5
  • JavaScript logoJavaScript
  • nodemailer
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management