Description
LobeHub before 2.3.6 contains a server-side request forgery vulnerability in the ComfyUI image service processImageFetch function that allows authenticated users with file:upload permission to send server requests by supplying a crafted imageUrl. Attackers can call the comfyui.createImage tRPC procedure to make GET requests to loopback, private network, and cloud metadata addresses, reading back responses that are valid images.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| lobehub | lobehub | 0 <2.3.6 | — |
References
- https://github.com/lobehub/lobehub/blob/v2.3.5/apps/server/src/services/comfyui/core/imageService.ts#L97-L121
- https://github.com/lobehub/lobehub/blob/v2.3.5/apps/server/src/routers/lambda/comfyui.ts#L28-L63
- https://github.com/lobehub/lobehub/commit/2e4589b71bbf1cb7862e612a2aa3bf3b98e1a333
- https://github.com/lobehub/lobehub/releases/tag/v2.3.6
- https://www.vulncheck.com/advisories/lobehub-before-2.3.6-ssrf-via-comfyui-imageurl-parameter