CVE-2023-23608
spotipy Path traversal vulnerability that may lead to type confusion in URI handling code
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
Spotipy is a light weight Python library for the Spotify Web API. In versions prior to 2.22.1, if a malicious URI is passed to the library, the library can be tricked into performing an operation on a different API endpoint than intended. The code Spotipy uses to parse URIs and URLs allows an attacker to insert arbitrary characters into the path that is used for API requests. Because it is possible to include "..", an attacker can redirect for example a track lookup via spotifyApi.track() to an arbitrary API endpoint like playlists, but this is possible for other endpoints as well. The impact of this vulnerability depends heavily on what operations a client application performs when it handles a URI from a user and how it uses the responses it receives from the API. This issue is patched in version 2.22.1.
Spotipy es una librería Python liviana para la API web de Spotify. En versiones anteriores a la 2.22.1, si se pasa un URI malicioso a la librería, se puede engañar a la librería para que realice una operación en un endpoint de API diferente al previsto. El código que utiliza Spotipy para analizar URI y URL permite a un atacante insertar caracteres arbitrarios en la ruta que se utiliza para las solicitudes de API. Debido a que es posible incluir "..", un atacante puede redirigir, por ejemplo, una búsqueda de pistas a través de spotifyApi.track() a un endpoint API arbitrario como listas de reproducción, pero esto también es posible para otros endpoints. El impacto de esta vulnerabilidad depende en gran medida de las operaciones que realiza una aplicación cliente cuando maneja un URI de un usuario y cómo utiliza las respuestas que recibe de la API. Este problema se solucionó en la versión 2.22.1.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2023-01-16 CVE Reserved
- 2023-01-24 CVE Published
- 2024-08-02 CVE Updated
- 2024-08-02 First Exploit
- 2024-08-16 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CAPEC
References (1)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/spotipy-dev/spotipy/security/advisories/GHSA-q764-g6fm-555v | 2024-08-02 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Spotipy Project Search vendor "Spotipy Project" | Spotipy Search vendor "Spotipy Project" for product "Spotipy" | < 2.22.1 Search vendor "Spotipy Project" for product "Spotipy" and version " < 2.22.1" | - |
Affected
|