The vulnerability is an unauthenticated Server-Side Request Forgery (SSRF) located at the /webapi/proxy endpoint. The analysis of the fixing commit cb8645f65a1cdeb384fc7d962c1e09090a796355 confirms the vulnerability details. The commit's primary change is the complete removal of the src/app/(backend)/webapi/proxy/route.ts file, which contained the vulnerable code.
The main vulnerable function is the POST handler within this file. It served as the public API endpoint that accepted a URL from a POST request body. This URL was then passed to the ssrfSafeFetch function to be fetched by the server. The critical flaw was the absence of any authentication or authorization check, allowing any individual to use this endpoint as an open proxy. This could be abused for various malicious purposes, including scanning internal networks, accessing cloud provider metadata, or launching attacks against other services from the LobeHub server's IP address.
During exploitation, the POST function would be the entry point, and ssrfSafeFetch would be visible in the execution stack as it performs the outbound request. Other functions like fetchPricing were identified as consumers of this vulnerable proxy from the client-side, which were also patched to remove their dependency on the proxy.