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

Goal: 1000 CNY ยท Raised: 1359 CNY

100%

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

CVSS 9.9 ยท Critical

Q1What is this vulnerability? (Essence + Consequences)

๐Ÿšจ **Essence**: Rejetto HFS (HTTP File Server) allows **Remote Code Execution (RCE)**. ๐Ÿ“‰ **Consequences**: Attackers can execute arbitrary OS commands, leading to full system compromise, data theft, or server takeover.โ€ฆ

Q2Root Cause? (CWE/Flaw)

๐Ÿ› ๏ธ **Root Cause**: Improper use of `child_process.execSync()` in Node.js. ๐Ÿ› **Flaw**: The application uses a shell to execute the `df` command (disk free) instead of the safer `spawnSync()`.โ€ฆ

Q3Who is affected? (Versions/Components)

๐ŸŽฏ **Affected**: Rejetto HFS version **< 0.52.10**. ๐Ÿ’ป **Platforms**: Linux, UNIX, and macOS. ๐Ÿ“ฆ **Component**: The Node.js-based file server module handling file uploads and disk space checks.

Q4What can hackers do? (Privileges/Data)

๐Ÿ•ต๏ธ **Hackers Can**: Execute **any OS command** with the privileges of the HFS process. ๐Ÿ“‚ **Data Impact**: Read/Write/Delete files, install backdoors, pivot to internal networks.โ€ฆ

Q5Is exploitation threshold high? (Auth/Config)

๐Ÿ”‘ **Threshold**: Medium. ๐Ÿ“ **Requirements**: 1. Target version < 0.52.10. 2. Valid **Authenticated Cookie**. 3. User must have **Upload Permissions**. ๐Ÿšซ Not fully anonymous; requires login.

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

๐ŸŒ **Public Exp?**: YES. ๐Ÿ“‚ **PoCs Available**: Multiple GitHub repos (e.g., `truonghuuphuc/CVE-2024-39943-Poc`, `A-little-dragon/CVE-2024-39943-Exploit`). ๐Ÿš€ **Status**: Easy to exploit if prerequisites are met.โ€ฆ

Q7How to self-check? (Features/Scanning)

๐Ÿ” **Self-Check**: 1. Check HFS version (must be < 0.52.10). 2. Verify if upload feature is enabled. 3. Scan for open HFS ports. ๐Ÿ› ๏ธ **Tools**: Use Nmap to detect HFS banners. Check admin panel for version info.

Q8Is it fixed officially? (Patch/Mitigation)

โœ… **Fixed?**: YES. ๐Ÿ“ฆ **Patch**: Update to **version 0.52.10** or later. ๐Ÿ”— **Reference**: Commit `305381bd36eee074fb238b64302a252668daad1d` fixes the `execSync` issue. ๐Ÿ”„ Official wiki confirms the fix.

Q9What if no patch? (Workaround)

๐Ÿ›ก๏ธ **No Patch?**: 1. **Disable Uploads**: If not needed, remove upload permissions for all users. 2. **Network Isolation**: Block external access to HFS ports. 3.โ€ฆ

Q10Is it urgent? (Priority Suggestion)

๐Ÿ”ฅ **Urgency**: HIGH. ๐Ÿ“… **Published**: July 4, 2024. โšก **Risk**: RCE with available PoCs. ๐Ÿšจ **Action**: Patch immediately or disable upload features. Do not ignore this vulnerability!