Use of Hard-coded Cryptographic Key Affecting github.com/dragonflyoss/dragonfly2/manager/router package, versions <2.1.0-beta.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    5.38% (94th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMDRAGONFLYOSSDRAGONFLY2MANAGERROUTER-8062320
  • published 20 Sep 2024
  • disclosed 19 Sep 2024
  • credit cokeBeer

How to fix?

Upgrade github.com/dragonflyoss/Dragonfly2/manager/router to version 2.1.0-beta.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of Hard-coded Cryptographic Key in the JWT authentication middleware. An attacker can impersonate any user, including administrative accounts, by generating a valid JWT with the known secret key.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None