Navidrome is an open source web-based music collection server and streamer. Navidrome automatically adds parameters in the URL to SQL queries. This can be exploited to access information by adding parameters like `password=...` in the URL (ORM Leak). Furthermore, the names of the parameters are not properly escaped, leading to SQL Injections. Finally, the username is used in a `LIKE` statement, allowing people to log in with `%` instead of their username. When adding parameters to the URL, they are automatically included in an SQL `LIKE` statement (depending on the parameter's name). This allows attackers to potentially retrieve arbitrary information. For example, attackers can use the following request to test whether some encrypted passwords start with `AAA`. This results in an SQL query like `password LIKE 'AAA%'`, allowing attackers to slowly brute-force passwords. When adding parameters to the URL, they are automatically added to an SQL query. The names of the parameters are not properly escaped. This behavior can be used to inject arbitrary SQL code (SQL Injection). These vulnerabilities can be used to leak information and dump the contents of the database and have been addressed in release version 0.53.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Navidrome automatically includes URL parameters directly in SQL queries within LIKE clauses without proper validation or parameter name escaping. An attacker can add a parameter to the URL such as `password=AAA`, resulting in a query like `password LIKE 'AAA%'`, enabling gradual guessing of encrypted passwords (ORM Leak-based brute-force attack). Additionally, URL parameter names are not properly escaped, allowing arbitrary SQL code injection. Furthermore, the username field during login is handled by a LIKE clause, allowing login using the wildcard character `%` instead of an actual username.
An attacker can read the entire contents of the Navidrome server database, including user passwords, and bypass the authentication mechanism by using a wildcard character as a username.
Navidrome should be updated to version 0.53.0 or later. The vendor indicates that there are no known workarounds for this vulnerability — updating is the only effective remediation measure.
Navidrome in all versions before 0.53.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNavidrome
APPNavidrome< 0.53.0
Related vulnerabilities
Navidrome: niekontrolowany wzrost pamięci i wyczerpanie dysku przez parametr rozmiaru obrazka
Navidrome: użycie słabego algorytmu haszowania w integracji z Gravatar
Navidrome is an open source web-based music collection server and streamer. Versions 0.55.0 through 0.55.2 hav...
Navidrome is an open source web-based music collection server and streamer. A permission verification flaw in ...
Navidrome is an open source web-based music collection server and streamer. Navidrome stores the JWT secret in...