Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2024-36858 — AI Deep Analysis Summary

Q1What is this vulnerability? (Essence + Consequences)

🚨 **Essence**: Arbitrary File Upload in Jan v0.4.12 via `/v1/app/writeFileSync`. 💥 **Consequences**: Attackers can upload crafted files to execute arbitrary code on the target system. Critical integrity loss.

Q2Root Cause? (CWE/Flaw)

🛡️ **Root Cause**: Lack of validation on the `/v1/app/writeFileSync` endpoint. The system accepts and writes files without verifying type, path, or content safety. No input sanitization.

Q3Who is affected? (Versions/Components)

📦 **Affected**: **Jan** (Open-source ChatGPT alternative). Specifically **v0.4.12**. Other versions may be vulnerable if the endpoint remains unchanged. Check your local installation.

Q4What can hackers do? (Privileges/Data)

💀 **Attacker Capabilities**: Execute arbitrary code. Gain remote control. Escalate privileges. Access sensitive data stored in uploaded files. Full system compromise potential.

Q5Is exploitation threshold high? (Auth/Config)

⚠️ **Threshold**: Likely **Low**. The vulnerability is in an API endpoint (`/v1/app/...`). If the service is exposed to the network, no complex auth bypass might be needed. Direct HTTP requests suffice.

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

🔍 **Public Exp?**: **Yes**. Proof of Concept (PoC) available via Nuclei templates. GitHub repos contain exploit scripts. Wild exploitation is possible for automated scanners.

Q7How to self-check? (Features/Scanning)

🔎 **Self-Check**: Scan for the endpoint `/v1/app/writeFileSync`. Use tools like Nuclei with the specific CVE template. Check if file upload functionality is exposed without strict restrictions.

Q8Is it fixed officially? (Patch/Mitigation)

🩹 **Fix**: Update Jan to the latest patched version. The vendor has acknowledged the issue. Official patches should restrict file types and validate upload paths strictly.

Q9What if no patch? (Workaround)

🚧 **No Patch?**: Disable the `/v1/app/writeFileSync` endpoint if possible. Implement WAF rules to block file upload attempts to this path. Restrict network access to the Jan service.

Q10Is it urgent? (Priority Suggestion)

🔥 **Urgency**: **HIGH**. Arbitrary code execution is a critical risk. Public exploits exist. Immediate action required: Patch or isolate the service. Do not ignore.