Codo
๐งช Pentest Log: {{date:2025-08-19}}
๐ Target Information
- Machine Name: Codo
- IP Address: 192.168.217.23
- Operating System: Linux
ip=192.168.217.23
๐ก 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 Directory Scan
gobuster dir -u http://$ip -w /usr/share/seclists/Discovery/Web-Content/common.txt
dirsearch -u http://$ip -r -o dirsearch.txt
Google "codefourm exploit", found
https://www.exploit-db.com/exploits/50978
๐ฃ Exploitation
๐ Vulnerability Summary
- Service / Port: 80
- Vulnerability Type: RCE
๐ Exploit Execution
๐ง Exploit Method
Tool / Script Used:
https://www.exploit-db.com/exploits/50978
use
admin:admin
admin panel > global settings > change forum logo > upload and access from http://192.168.217.23/sites/default/assets/img/attachments/[file.php]
๐งฌ Privilege Escalation
๐ค Current Access
- User: www-data
- Groups: 33(www-data)
- Shell Type: web shell
๐ Enumeration
Web Config File
cat /var/www/html/sites/default/config.php
Found
'username' => 'codo',
'password' => 'FatPanda123',
๐ Privilege Escalation Exploit
๐ Exploit Summary
- Technique Used: Password Reuse
- Target Binary/Service: N/A
- Reference / Source: N/A
๐ง Exploit Steps
- Smash to root
su -