CVE-2022-39841 Medusa's leaky WebSocket
The Medusa web application exposes an unauthenticated WebSocket endpoint that broadcasts configuration updates, including plaintext credentials, to any connected client. An attacker can connect to this WebSocket and wait for a legitimate user to change settings, thereby capturing the admin username, password, and API key.
sec.stealthcopter.com
Published on sec.stealthcopter.com
A critical vulnerability in Medusa allows for information leakage, including plaintext credentials, by attaching to an unauthenticated WebSocket and waiting for a user to make a configuration change.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The WebSocket handler lacks authentication, allowing any client to receive configuration updates containing sensitive data.
Impact
An attacker could obtain plaintext admin credentials and API keys, leading to full compromise of the Medusa instance.
What the attacker needed
Network access to the Medusa instance; A user changes settings while attacker is connected
How it was found
- Connect to the WebSocket endpoint at /ws/ui without authentication.
- Wait for a legitimate user to change any configuration setting.
- Receive the configuration update message containing plaintext credentials.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Medusa is a tool for managing TV show libraries. It has a feature that sends live updates to the web page when settings change, but this update channel does not check who is listening. So anyone who can reach the server can listen in and steal the admin password when the real admin saves a setting.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.