TryHackMe: Silver Platter

Walkthrough challenge Silver Platter trên TryHackMe — exploit Silverpeas CVE, credential bypass, IDOR, và privilege escalation.

Link: https://tryhackme.com/room/silverplatter

Keyword: Silverpeas, Privilege Escalation

Cảm ơn TheHiker!

Tips: Đừng dùng free AttackBox của TryHackMe! Thay vào đó dùng OpenVPN để tự do thử nghiệm!

1. Recon

Nmap scan: nmap -sC -sV 10.10.165.51

Phát hiện 3 port: 22, 80, 8080. Port 22 là SSH cần password.

nmap results

Thông tin: Ubuntu + Nginx proxy.

Truy cập http://10.10.165.51 — không thấy gì, nhưng About page gợi ý hệ thống dùng Silverpeas.

Dùng dirsearch trên port 8080, phát hiện subdirectories nhưng đều redirect:

dirsearch results

2. Attack Silverpeas

Thử http://10.10.165.51:8080/Silverpeas → login page!

Silverpeas login

Phiên bản cũ (2022), có thể exploit CVE 2023:

Dùng Burp Suite, xoá password field → bypass authentication:

Burp Suite bypass

Admin page!

Admin page

Exploit IDOR — thay đổi messageID để đọc tin nhắn, tìm credentials:

Credentials found

3. SSH và Privilege Escalation

SSH vào: ssh tim@10.10.165.51

tim là user thường, không có sudo:

tim no sudo

Tìm trong /etc/passwd: user tyler có root privileges:

tyler:x:1000:1000:root:/home/tyler:/bin/bash

Kiểm tra group: tim thuộc group 4(adm) → có thể đọc log. Tìm password trong log:

cat /var/log/auth* | grep -i pass

Password in logs

Root đã truy cập PostgreSQL với cleartext password → thử cho tyler:

Root access

Privilege escalation thành công! 🎉

Cảm ơn TheHiker đã giúp mình giải challenge EASY này!