Goal Reached Thanks to every supporter โ€” we hit 100%!

Goal: 1000 CNY ยท Raised: 1359 CNY

100%

CVE-2024-47066 โ€” AI Deep Analysis Summary

CVSS 9.0 ยท Critical

Q1What is this vulnerability? (Essence + Consequences)

๐Ÿšจ **Essence**: Lobe Chat suffers from an **SSRF (Server-Side Request Forgery)** bypass. The proxy protection ignores HTTP redirects.โ€ฆ

Q2Root Cause? (CWE/Flaw)

๐Ÿ›ก๏ธ **Root Cause**: **CWE-918**. The code in `src/app/api/proxy/route.ts` validates the initial URL but fails to check URLs after **redirects**. ๐Ÿ› **Flaw**: Logic gap in handling 3xx responses.

Q3Who is affected? (Versions/Components)

๐Ÿ‘ฅ **Affected**: **Lobe Chat** by **lobehub**. Specifically versions **prior to 1.19.13**. ๐Ÿ“ฆ **Component**: The API proxy route handling external requests.

Q4What can hackers do? (Privileges/Data)

๐Ÿ•ต๏ธ **Hackers Can**: Bypass security filters to access **internal resources** (private networks, loopback addresses). ๐Ÿ“Š **Impact**: High Confidentiality & Availability impact. Can read internal server data.

Q5Is exploitation threshold high? (Auth/Config)

๐Ÿ”’ **Threshold**: **Medium**. Requires **PR:H** (High Privileges) according to CVSS. โš™๏ธ **Config**: User likely needs authenticated access to trigger the proxy endpoint.

Q6Is there a public Exp? (PoC/Wild Exploitation)

๐Ÿ’ฃ **Public Exp?**: **Yes**. A PoC is available on GitHub (`l8BL/CVE-2024-47066`). ๐ŸŒ **Status**: Proof-of-concept exists, demonstrating the redirect bypass technique.

Q7How to self-check? (Features/Scanning)

๐Ÿ” **Self-Check**: Scan for Lobe Chat instances. Check version number. ๐Ÿงช **Test**: If you have access, try sending a malicious URL that redirects to `127.0.0.1` or internal IPs via the proxy API.

Q8Is it fixed officially? (Patch/Mitigation)

โœ… **Fixed?**: **Yes**. Version **1.19.13** contains the improved fix. ๐Ÿ“ **Patch**: Update Lobe Chat to v1.19.13 or later immediately.

Q9What if no patch? (Workaround)

๐Ÿšง **No Patch?**: Implement a **WAF rule** to block redirects to private IP ranges. ๐Ÿ›‘ **Mitigation**: Restrict proxy access to trusted users only. Disable external proxying if not needed.

Q10Is it urgent? (Priority Suggestion)

๐Ÿ”ฅ **Urgency**: **High**. CVSS includes **S:C** (Changed Scope) and **C:H** (High Confidentiality). ๐Ÿš€ **Action**: Patch immediately if running <1.19.13. Do not ignore SSRF risks.