Descrizione
Dify before 1.15.0 contains a server-side request forgery vulnerability that allows any authenticated console user to bypass SSRF protections and issue arbitrary HTTP requests to internal services and cloud metadata endpoints due to the Squid proxy configuration only defining source ACLs without destination deny rules and the make_request() helper performing no independent destination IP validation. Attackers can use endpoints such as GET /console/api/remote-files/<url>, POST /console/api/remote-files/upload, the HTTP Request workflow node, website crawl, or document import from URL to reach internal components like the sandbox, internal APIs, and PostgreSQL, and on AWS deployments read IAM credentials from the instance metadata service, with the HTTP Request node further enabling POST, PUT, and DELETE writes to internal services relying on network isolation for authorization.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.6, EPSS 0.4% (percentile 35).
Versioni da aggiornare
- langgenius dify: vulnerabili le versioni dalla
0.6.0precedenti alla1.15.0→ aggiornare alla1.15.0o successiva.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare filtri sul traffico in uscita del server e bloccare l'accesso agli endpoint di metadati cloud (169.254.169.254).
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| langgenius | dify | ≥ 0.6.0 < 1.15.0 | 1.15.0 |
Riferimenti
- Riferimentohttps://github.com/langgenius/dify/commit/7bfcf9185c75bb18f0b44335080524e659f087d9
- Riferimentohttps://github.com/langgenius/dify/pull/36332
- Riferimentohttps://github.com/langgenius/dify/releases/tag/1.15.0
- Riferimentohttps://www.vulncheck.com/advisories/dify-ssrf-protection-bypass-via-remote-files-endpoints