Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

GHSA-xv8g-fj9h-6gmv

Linkdave Missing Authentication on REST and WebSocket endpoints
Back to all
CVE

GHSA-xv8g-fj9h-6gmv

Linkdave Missing Authentication on REST and WebSocket endpoints

The linkdave server does not enforce authentication on its REST and WebSocket routes in versions prior to 0.1.5.

Impact

An attacker with network access to the server port can:

  • Connect to the WebSocket endpoint (/ws) and receive a valid session_id in the OpReady response.
  • Use that session to invoke all REST player controls on any guild corresponding to their session id[1].
  • Enumerate server statistics and runtime information via the unauthenticated /stats endpoint (still public after the fix).

1] If on [>=0.1.0, attackers are restricted to creating, controlling and deleting players created within their own session ID.

Vulnerable Routes

The following routes were entirely unauthenticated in >= 0.0.1, < 0.1.5:

| Method | Path | Description |

|--------|------|-------------|

POST | /sessions/{sessionid}/players/{guildid}/play | Start audio playback |

POST | /sessions/{sessionid}/players/{guildid}/pause | Pause playback |

POST | /sessions/{sessionid}/players/{guildid}/resume | Resume playback |

POST | /sessions/{sessionid}/players/{guildid}/stop | Stop playback |

POST | /sessions/{sessionid}/players/{guildid}/seek | Seek to position |

PATCH | /sessions/{sessionid}/players/{guildid}/volume | Set volume |

DELETE | /sessions/{sessionid}/players/{guildid} | Disconnect from voice channel |

GET | /ws | WebSocket event stream |

Patches

Update to 0.1.5.

- image: ghcr.io/shi-gg/linkdave:0.1.4
+ image: ghcr.io/shi-gg/linkdave:latest

or

docker pull ghcr.io/shi-gg/linkdave:latest

After upgrading, set the LINKDAVE_PASSWORD environment variable to a strong secret value. If this variable is left unset, the server will still accept all connections without authentication even on >= 0.1.5.

Server configuration (e.g. compose.yml):

environment:
    LINKDAVE_PASSWORD: ${LINKDAVE_PASSWORD}
echo "LINKDAVE_PASSWORD=$(openssl rand -hex 16)" >> .env

To restart the stack, run

docker compose up -d

TypeScript client (0.1.5+):

The client automatically handles authentication. Pass the password when constructing the client:

const linkdave = new LinkDaveClient({
    nodes: [
        {
            name: "main",
            url: process.env.LINKDAVE_URI,
            password: process.env.LINKDAVE_PASSWORD
        }
    ]
});

Workarounds

If upgrading is not immediately possible, restrict network access to the server's port using a firewall so it is only accessible from trusted internal IP addresses.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
-
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/shi-gg/linkdave/security/advisories/GHSA-xv8g-fj9h-6gmv, https://github.com/shi-gg/linkdave/commit/0f9a00d9d549b16278db81fce6dfec350c2abc01, https://github.com/shi-gg/linkdave

Severity

0

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
0
EPSS Probability
0%
EPSS Percentile
0%
Introduced Version
0
Fix Available
0.1.5

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading