IP VM CIBLE: 10.10.11.55
IP ATTACK : 10.10.14.92
Nmap scan report for 10.10.11.55
Host is up (0.023s latency).
Not shown: 65244 closed tcp ports (reset), 289 filtered tcp ports (no-response)
PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.10 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey: 
|   256 73039c76eb04f1fec9e980449c7f1346 (ECDSA)
|_  256 d5bd1d5e9a861ceb88634d5f884b7e04 (ED25519)
80/tcp open  http    Apache httpd 2.4.52
|_http-title: Did not follow redirect to <http://titanic.htb/>
|_http-server-header: Apache/2.4.52 (Ubuntu)
Device type: general purpose
Running: Linux 5.X
OS CPE: cpe:/o:linux:linux_kernel:5.0
OS details: Linux 5.0
Network Distance: 2 hops
Service Info: Host: titanic.htb; OS: Linux; CPE: cpe:/o:linux:linux_kernel
"10.10.11.55 titanic.htb" >> /etc/hosts

http://titanic.htb/

image.png

image.png

En inspectant un peu on se dit que http://titanic.htb/download?ticket=XXXX on va peut être pouvoir l’exploiter donc Go BURP pour bidouiller les requetes en mode PROXY

Proxy ⇒ ON

On lance le browser de PortSwigger

image.png

On forward jusque la soumission du formulaire et on passe la requête “GET /titanic.htb/download?ticket” dans le repeater pour la modifier

Rapidement on trouve une LFI qui permet de visualiser /etc/password