Search

Type to search posts.

es
HackConRD CTF 2024: Firensics

HackConRD CTF 2024: Firensics

Junior Restituyo
0xR3iko

This challenge tells us that an employee is suspected of having leaked confidential company data, and requires us to find sensitive information in some files provided.

We got a zip file that included all the files and folders shown below. Taking a closer look and doing some research, we found that we have Firefox artifacts.

An artifact is a remnant or trace left behind on the computer which helps to identify the source of malicious traffic and attacks conducted on the system. A few examples include cache data, history, downloads, etc.

Firefox stores these artifacts inside specific folders in the operating system.

Listing of a Firefox profile folder with its artifact files

Browsing through all these files and after reviewing them, we found places.sqlite. Here we could find the moz_origins table, and we saw something particular: the pastebin.com website is the most visited of all, with 6579 visits. That is curious.

moz_origins table showing pastebin.com as the most visited site

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Moving to the moz_places table, we find a particular URL that takes us to a note saved on pastebin.com.

moz_places table with the URL of a saved Pastebin note

When we access this URL, we see that it requires a password to release the information.

Password-protected ("Locked Paste") page on Pastebin

Searching a little, we found another database, formhistory.sqlite. In the moz_formhistory table we find a LoginForm[username] and a PostForm[password]. We try to use the password to release the data on pastebin.com.

moz_formhistory table exposing a saved username and password

Accessing the note, we were able to obtain the flag.

The unlocked Pastebin note revealing the flag

Thanks for reading.