CVE-2023-50258
Pymedusa Medusa vulnerability
Medusa is an automatic video library manager for TV shows. Versions prior to 1.0.19 are vulnerable to unauthenticated blind server-side request forgery (SSRF). The `testDiscord` request handler in `medusa/server/web/home/handler.py` does not validate the user-controlled `discord_webhook` variable and passes it to the `notifiers.discord_notifier.test_notify` method, then `_notify_discord` and finally `_send_discord_msg` method, which sends a POST request to the user-controlled URL on line 64 in `/medusa/notifiers/discord.py`, which leads to a blind server-side request forgery. This issue allows for crafting POST requests on behalf of the Medusa server. Version 1.0.19 contains a fix for the issue.
Affected products
Medusa. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Pymedusa Medusa runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/pymedusa/Medusa/security/advisories/GHSA-3hph-6586-qv9g · Exploit
- securitylab.github.com/advisories/GHSL-2023-201_GHSL-2023-202_Medusa/ · Exploit
- github.com/pymedusa/Medusa/blob/3d656652ab277e47689483912ed7fc443e7023e8/medusa/notifiers/
- github.com/pymedusa/Medusa/blob/3d656652ab277e47689483912ed7fc443e7023e8/medusa/server/web
- github.com/pymedusa/Medusa/releases/tag/v1.0.19
- nvd.nist.gov/vuln/detail/CVE-2023-50258
- cve.org/CVERecord?id=CVE-2023-50258
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.