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

Goal: 1000 CNY Β· Raised: 1000 CNY

100.0%

CVE-2024-1561 β€” AI Deep Analysis Summary

Q1What is this vulnerability? (Essence + Consequences)

🚨 **Essence**: Gradio allows calling **any method** on classes via endpoints. πŸ“‰ **Consequences**: Unauthorized **Local File Read (LFR)**. πŸ’₯ **Impact**: Sensitive information leakage from the server.

Q2Root Cause? (CWE/Flaw)

πŸ›‘οΈ **Root Cause**: Improper access control on endpoints. πŸ” **CWE**: **CWE-29** (Improper Control of Filename for Include/Include-Adjacent). ⚠️ **Flaw**: No restriction on which class methods can be invoked remotely.

Q3Who is affected? (Versions/Components)

πŸ‘₯ **Affected**: **Gradio** (Python library). πŸ“… **Versions**: **4.3 to 4.12**. 🚫 **Fixed In**: Version **4.13.0** and above.

Q4What can hackers do? (Privileges/Data)

πŸ•΅οΈ **Hackers Can**: Read arbitrary files from the server. πŸ”‘ **Privileges**: Local file system access. πŸ“‚ **Data**: Sensitive configs, source code, secrets, or user data.

Q5Is exploitation threshold high? (Auth/Config)

πŸ”“ **Threshold**: **Low**. 🌐 **Auth**: Likely **None** required for the specific endpoint. βš™οΈ **Config**: Depends on Gradio deployment, but the flaw is in the core method invocation logic.

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

πŸ”₯ **Public Exp?**: **Yes**. πŸ“œ **PoC**: Available on GitHub (DiabloHTB). πŸ§ͺ **Tools**: Nuclei templates exist for automated scanning. 🌍 **Exploitation**: Active proof-of-concepts are public.

Q7How to self-check? (Features/Scanning)

πŸ” **Self-Check**: Use **Nuclei** with CVE-2024-1561 template. πŸ› οΈ **Command**: `nuclei -target <URL> -t CVE-2024-1561.yaml`. πŸ“‹ **Verify**: Check if your Gradio version is < 4.13.0.

Q8Is it fixed officially? (Patch/Mitigation)

βœ… **Fixed**: **Yes**. πŸ“¦ **Patch**: Upgrade to **Gradio 4.13.0+**. πŸ”— **PR**: Fixed in PR #6884. πŸ”„ **Action**: Update library immediately.

Q9What if no patch? (Workaround)

🚧 **No Patch?**: Implement strict **input validation**. 🚫 **Block**: Restrict method names allowed in API calls. πŸ›‘οΈ **WAF**: Block requests targeting internal Gradio endpoints.…

Q10Is it urgent? (Priority Suggestion)

⚑ **Urgency**: **HIGH**. 🚨 **Priority**: Critical for ML model deployments. πŸ“’ **Action**: Patch immediately if running vulnerable versions. ⏳ **Risk**: Easy exploitation leads to data breach.