Manual Privilege Escalation Rejetto Http File Server Windows Rce
The Rejetto HTTP File Server 2.3 is vulnerable to remote code execution, allowing an attacker to run arbitrary commands and obtain a reverse shell. After gaining initial access, the attacker exploited an unquoted service path in AdvancedSystemCareService9 to escalate privileges to Administrator.
Hey there, this blog is about manual exploitation in Windows using a vulnerable server (Rejetto HTTP File Server) to get access to the target machine and then perform privilege escalation using WinPEAS.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Rejetto HFS 2.3 has a remote code execution vulnerability, and the AdvancedSystemCareService9 service uses an unquoted file path that allows replacing the executable.
Impact
An attacker could execute arbitrary code on the server and escalate privileges to Administrator, gaining full control of the machine.
What the attacker needed
Network access to the target; ability to host files (e.g., HTTP server); target runs Rejetto HFS 2.3; target has AdvancedSystemCareService9 with unquoted path
How it was found
- Scan the target with Nmap to find the HTTPFileServer 2.3 service.
- Copy the public exploit for Rejetto HTTP File Server 2.3 and edit it to use the attacker's IP address.
- Host ncat.exe and start a netcat listener on port 443.
- Run the exploit twice: first to download ncat.exe, second to get a reverse shell.
- Download and run WinPEAS to find privilege escalation paths, identifying the unquoted service path in AdvancedSystemCareService9.
- Generate a malicious executable named ASCService.exe, stop the service, download the payload, and restart the service to get an Administrator shell.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report shows how an old file-sharing program with a known security flaw can let an attacker run their own commands on a Windows machine. After getting in as a normal user, the attacker noticed a service that started a program from a folder path containing spaces and no quotes, so they replaced that program with their own to become the administrator.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.