Cozyhosting

Information Gathering

Port and Services

# Nmap 7.95 scan initiated Tue May 13 18:39:53 2025 as: /usr/lib/nmap/nmap --privileged -p- -oN nmap_result -sVC --min-rate 1000 10.10.11.230
Nmap scan report for 10.10.11.230
Host is up (0.063s latency).
Not shown: 65533 closed tcp ports (reset)
PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.3 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   256 43:56:bc:a7:f2:ec:46:dd:c1:0f:83:30:4c:2c:aa:a8 (ECDSA)
|_  256 6f:7a:6c:3f:a6:8d:e2:75:95:d4:7b:71:ac:4f:7e:42 (ED25519)
80/tcp open  http    nginx 1.18.0 (Ubuntu)
|_http-server-header: nginx/1.18.0 (Ubuntu)
|_http-title: Did not follow redirect to http://cozyhosting.htb
Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel

Service detection performed. Please report any incorrect results at https://nmap.org/submit/ .
# Nmap done at Tue May 13 18:40:19 2025 -- 1 IP address (1 host up) scanned in 26.05 seconds

Initial Access

Spring Boot Actuator

change JSESSIONID Cookie value using kanderson cookie

Command Injection

password search

disini mendapatkan password

list database

switch database and list tables

dump table user

kanderson creds was found in prev enum, i will crack the admin hash

try login to josh user with manchesterunited password

Priv Escalation

Last updated