Platform: Proving Grounds · Difficulty: Easy
Reconnaissance
I used RustScan to identify open ports.

The scan found three open ports. I followed up with service detection to identify them.
Service enumeration
Nmap identified the services and versions on the open ports.
The results showed SSH, HTTP, and an FTP service on port 2112. The FTP listing suggested files available for inspection.
FTP enumeration
The service accepted anonymous authentication on port 2112 with anonymous/anonymous. 
I listed the FTP directory.
I downloaded the available files with mget * and inspected them locally.
welcome.msg did not advance the investigation. The index.php.bak backup exposed PHP login logic, including the username admin and a $pass variable. The backup offered a basis for testing the live login form.
Web enumeration
The HTTP landing page displayed “Potato Company.” 
I performed directory discovery to find additional routes.

The scan found /admin, which presented a login form.

The admin/admin attempt failed. The form behavior was consistent with the login logic exposed in the backup.

The PHP source indicated that the password could change. I tested whether the password comparison could be bypassed by sending an unexpected input type.
Authentication bypass
I intercepted the login request with Burp Suite.

I modified the password parameter to send an array value and submitted the request. The exact wire representation is visible in the screenshot below.

The modified request granted access to the administrative interface. 
I examined the logs feature. 
I tested whether the file path was restricted to the intended log directory by requesting /etc/passwd through traversal.

The response confirmed path traversal and exposed the webadmin account and a password hash.

I saved the hash and tested it with John the Ripper using the rockyou wordlist.
john --wordlist=/usr/share/wordlists/rockyou.txt hashfile

SSH access
The recovered password provided SSH access as webadmin.

I listed the user directory to locate the first flag.
The user flag was present there.
Privilege escalation
I checked sudo -l and continued enumerating local execution paths.

The first GTFOBins technique failed. I then used the permitted execution path shown in the screenshot with a shell script named comrade.sh containing /bin/bash. This returned a root shell, from which I retrieved the final flag. The precise sudo rule should be checked against the screenshot before treating this as a reproducible procedure.
Outcome
Anonymous FTP exposed source code; the login comparison was bypassed; and path traversal exposed a password hash used for SSH access. The local execution path led to the root flag.