HTB Bumblebee
Sherlock Scenario
An external contractor has accessed the internal forum here at Forela via the Guest Wi-Fi, and they appear to have stolen credentials for the administrative user! We have attached some logs from the forum and a full database dump in sqlite3 format to help you in your investigation.
Q1
What was the username of the external contractor?
看日志,登录的访问 ip 是 10.10.0.78,从数据库的用户登录 IP 看一下。
用户名是 apoole1
apoole1
Q2
What IP address did the contractor use to create their account?
上一问已经找到了
10.10.0.78
Q3
What is the post_id of the malicious post that the contractor made?
去看一下 posts 相关的表,发现这个 ip 发了一个很长很长的内容,保存下来后缀改成 html 打开看一下。
发现是一个伪装的登录界面,通过这个进行钓鱼窃取用户信息,因此可以断定恶意 post 就是这个。
9
Q4
What is the full URI that the credential stealer sends its data to?
这个伪装的页面将账密都上传到了攻击者自己的服务器上
http://10.10.0.78/update.php
Q5
When did the contractor log into the forum as the administrator? (UTC)
看一下日志的表,发现有一个 10.10.0.78 登录管理员账号的操作,把这个时间戳转换一下就是答案
26/04/2023 10:53:12
Q6
In the forum there are plaintext credentials for the LDAP connection, what is the password?
一般这种都在 config 表里面,进去搜一下就找到了

Passw0rd1
Q7
What is the user agent of the Administrator user?
翻一下日志,注意这个问的是正牌管理员的 UA,不是攻击者的

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Q8
What time did the contractor add themselves to the Administrator group? (UTC)

26/04/2023 10:53:51
Q9
What time did the contractor download the database backup? (UTC)
注意日志里面的时间是 UTC+1,答案要减去 1 小时
26/04/2023 11:01:38
Q10
What was the size in bytes of the database backup as stated by access.log?

34707