A Server-Side Request Forgery (SSRF) vulnerability exists in the lunary-ai/lunary application, specifically within the endpoint '/auth/saml/tto/download-idp-xml'. The vulnerability arises due to the application's failure to validate user-supplied URLs before using them in server-side requests. An attacker can exploit this vulnerability by sending a specially crafted request to the affected endpoint, allowing them to make unauthorized requests to internal or external resources. This could lead to the disclosure of sensitive information, service disruption, or further attacks against the network infrastructure. The issue affects the latest version of the application as of the report.
The vulnerability results from the lack of validation of URLs supplied by the user before their use in server-side requests. The attacker sends a specially crafted request to the endpoint responsible for retrieving the XML configuration file of the identity provider (IdP) as part of SAML integration. The server, without verification, executes an HTTP request to the address specified by the attacker, allowing access to resources that are not directly accessible from the outside – including internal network services, cloud environment metadata, and other infrastructure components.
An attacker can gain access to sensitive information from internal infrastructure (e.g., cloud instance metadata, access tokens, service configurations), cause service disruptions, or prepare the ground for further attacks on the internal network (lateral movement).
Patches available from the vendor should be applied according to the references. It is also recommended to implement URL validation and filtering on the server side (allowlisting of permitted hosts) and restrict outgoing network connections from the application server to the required minimum.
The latest version of the Lunary application (lunary-ai/lunary) available at the time of vulnerability report – versions indicated in the vendor's references.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:LLunary
APPLunaryall versions
Related vulnerabilities
Stored XSS w Lunary — wstrzyknięcie skryptu przez zmienną środowiskową
Brak kontroli dostępu w API BigQuery — eksport całej bazy danych w Lunary
SQL Injection w trasie /api/v1/external-users aplikacji Lunary
Lunary: brak kontroli dostępu do konfiguracji SAML (nieautoryzowana zmiana)
Błąd autoryzacji w Lunary umożliwiający pełny dostęp do projektów