Valentine Writeup

0x01 Reconnaissance

0x02 Enumeration
1. Port 22
There is an SFTP overflow RCE that requires login credentials, a username, or a private key. When SSH only permits SFTP, this vulnerability can allow system access through SSH to execute commands.
2. Port 80, 443
--script vuln finds Heartbleed.
I find ASCII hex data. Decoding it produces an encrypted id_rsa. Trying to decrypt it with openssh returns an error.
openssl rsa -in id_rsa -out dec.key
Cracking it with john yields the password *7¡Vamos!.

The private key should allow a direct SSH connection, but the current password is wrong and the username is unknown.
Apache httpd 2.2.22 has a cgi-bin RCE. The path returns 404. Perhaps a specific script URI is required, but the scans have not found any scripts under cgi-bin.