Junglewise Threat Intelligence

CVE-2024-47066: LobeHub Lobe Chat SSRF bypass in proxy endpoint via redirects

CVE-2024-47066 · Severity: low · CVSS 3.1 · Published 2024-09-23

Technologies: LobeHub Lobe Chat, @lobehub/chat (npm). Vendors: LobeHub, npm.

Executive brief

Lobe Chat, an open-source AI chat framework, contains a security flaw in its proxy service. An attacker can trick the server into making requests to internal systems that are normally protected from the public internet. This could allow an attacker to access private data or internal services, potentially leading to a breach of sensitive information.

Technical details

A Server-Side Request Forgery (SSRF) vulnerability exists in Lobe Chat's proxy route (`src/app/api/proxy/route.ts`). While the application implemented initial SSRF protections, it failed to account for HTTP redirects. An attacker can provide a URL to a malicious external server that issues a redirect to internal resources, such as loopback addresses (localhost) or private network IPs. This bypasses the existing validation logic, allowing the attacker to probe or interact with internal services. The vulnerability is tracked as an insufficient fix for a previous SSRF issue (CVE-2024-32964). A fix is available in version 1.19.13 which improves redirect handling.

Affected products

  • LobeHub Lobe Chat <= 1.19.12

Timeline

  • 2024-09-23: advisory: GHSA-3fc8-2r3f-8wrg published
  • 2024-09-23: patched: Version 1.19.13 released

References

Related threats