Difficulty: ❄ ❄ ❄ ❄ ❄
What username logs you into the SantaVision portal?
Hints
Misplaced Credentials
From: Ribb Bonbowford
Objective: Santa Vision A
See if any credentials you find allow you to subscribe to any MQTT feeds.
Filesystem Analysis
From: Ribb Bonbowford
Objective: Santa Vision A
jefferson is great for analyzing JFFS2 file systems.
Database Pilfering
From: Ribb Bonbowford
Objective: Santa Vision A
Consider checking any database files for credentials…
Mosquito Mosquitto
From: Ribb Bonbowford
Mosquitto is a great client for interacting with MQTT, but their spelling may be suspect. Prefer a GUI? Try MQTTX
Silver
As a first step, I tried to discover the ports opened on the server with nmap:
1 | thedead@maccos act3-SantaVision % nmap 34.44.88.211 -p- |
Reaching the website on http://34.56.1.154:8000, I got presented with a login page:
This was easily bypassed by looking at the html source and noticing leftover credentials in the comment:
1 | <div class="footer" id="footer"> |
Login with user elfanon and password elfanon is successful, with elfanon being the answer to the silver trophy.
Gold
Following the message (topic 'sitestatus' available.) in the footer, I connected as elfanon using mosquitto to the sitestatus feed. Among the other messages, one was particularly interesting:
1 | thedead@maccos act3-SantaVision % mosquitto_sub -v -h 34.44.88.211 -p 1883 -u elfanon -P elfanon -t 'sitestatus' |
Once downloaded the file /static/sv-application-2024-SuperTopSecret-9265193/applicationDefault.bin it can be extracted with jefferson and its contents explored:
1 | thedead@maccos act3-SantaVision % wget http://34.44.88.211:8000/static/sv-application-2024-SuperTopSecret-9265193/applicationDefault.bin |
Looking at the file app/src/accounts/views.py, I found the reference to a sqlite DB:
1 | # ... omisssis ... |
Downloading this file and exploring it, I found the user santaSiteAdmin:
1 | (act3-SantaVision) thedead@maccos act3-SantaVision % wget http://34.44.88.211:8000/static/sv2024DB-Santa/SantasTopSecretDB-2024-Z.sqlite |
Leveraging on the santaSiteAdmin credentials I could login to the web page again, with santaSiteAdmin being the answer to the gold trophy.