type
status
date
slug
summary
tags
category
icon
password
Catagory
Materials
Retired
Retired
Due date
Jan 16, 2024 05:33 AM
Status
Belong in

Progress

Task1:With what kind of tool can intercept web traffic?

proxy
notion image

Task2:What is the path to the directory on the webserver that returns a login page?

/cdn-cgi/login
notion image
notion image

Task3:What can be modified in Firefox to get access to the upload page?

點選【Login as Guest】
cookie
cookie
Account page
Account page
client page
client page

Task4:What is the access ID of the admin user?

34322
notion image
notion image
前面可以看到改id參數就可以查看user,故寫個bash產生1-100數字
使用burp →把擷取到的request 【send to Intruder】→ Attack type選擇【Sniper】→ payloads type【Simple list】→ Start Attack →
notion image
notion image
notion image
notion image
notion image
notion image
notion image

Task5:On uploading a file, what directory does that file appear in on the server?

/uploads
notion image
guest cookie無法進入uploads page
guest cookie無法進入uploads page
notion image

Task6:What is the file that contains the password that is shared with the robert user?

notion image
上傳reverse shell
上傳reverse shell
notion image
獲取到robert密碼:M3g4C0rpUs3r!
獲取到robert密碼:M3g4C0rpUs3r!
ssh登入成功
ssh登入成功

Task7:What executible is run with the option "-group bugtracker" to identify all files owned by the bugtracker group?

find
notion image

Task8:Regardless of which user starts running the bugtracker executable, what's user privileges will use to run?

root
notion image

Task9:What SUID stands for?

notion image

Task10:What is the name of the executable being called in an insecure manner?

cat
The execution use cat utility  for showing the text file
The execution use cat utility for showing the text file
提權
到tmp下創造一個cat檔案,內容為’/bin/sh’;記得給執行權限
到tmp下創造一個cat檔案,內容為’/bin/sh’;記得給執行權限
將tmp加到環境變數中,執行bugtracker
將tmp加到環境變數中,執行bugtracker
提權成功
提權成功

Submit user flag

f2c74ee8db7983851ab2a96a44eb7981
notion image

Submit root flag

af13b0bee69f8a877c3faf667f7beacf
notion image
 

Reference

 
HTB - VaccineHTB - Archetype