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

Goal: 1000 CNY Β· Raised: 1000 CNY

100.0%

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.