Skip to main content
  1. Posts/

2024 HITCON Cyber Range 學生場 Writeup

··905 words

在來之前完全沒摸過藍隊,但就是秉持著我是來學習的精神(X
就是沒有參加初賽的快樂學生,AIS3讚!
從開始說明規則之後就完全茫掉了
跟題目乾瞪眼到中午之後才大概知道要怎麼做,才開始瘋狂解題。
但解到後面之後發現可以善用刪去法、條件、跟答案爆破

環境介紹 #

大概長這樣 但我沒很懂(資網重修

image

然後會像這樣有題目要填找到的答案
image

全對才有分,錯了會有禁答懲罰(最多3分鐘),但會告訴你哪個錯
image

所以可以把可能答案填一填,說不定就矇對了(X
image

Log Viewer像這樣,要學一下怎麼用,是splunk的

Digital Storm (+50 pts) #

Our intrusion detection system has flagged unusual network activity indicative of automated scanning tools. The scans appear to be systematically probing our network for vulnerabilities.
Investigate this incident and determine the nature and extent of the scanning activity.

有人在做壞壞的掃描
Apache Log打開就看的到

image

所以
image

Web Intrusion (+100 pts) #

After automated scanning, a targeted attack was detected.
An attacker exploited a vulnerability in our web server to gain unauthorized access to the system.

那個壞壞的人掃描完,就在web幹壞事
設定status 200 找他有存取成功的指令
在看到第6頁的時候發現他掃描完開始幹大事了,看來就是這裡

image

綜合在Apache log首頁看到的version資訊

image

問題是這是哪個CVE
2.4.58其實版本蠻新的,||,加上大哥的場外救援||加上這是Hitcon 2024 Cyber Range
只能是橘神啦

image

Config Raid (+50 pts) #

Our security monitoring system flagged suspicious activity on a critical server, including unexpected account usage followed by unusual file access.
Sensitive configuration files appear to have been accessed and downloaded. Investigate this incident and provide details about the timing and destination of the data movement.

他web shell完開始偷東西了!
綜合題目說的意外的帳戶使用

image

試了一下這個就成功了
image

VPN interfusion (+50 pts) #

Following the web server breach, the attacker discovered VPN credentials in the stolen configuration files.
These credentials were then used to establish an unauthorized VPN connection.

這隊友寫的

image

Internal Recon (+75 pts) #

After gaining unauthorized VPN access, the attacker initiated an internal network scan.
Detect and analyze this scanning activity to understand the attacker’s reconnaissance efforts within our network.

也是神隊友

image

Credential Spread (+50 pts) #

Using the credentials obtained from the network sniffing attack, the attacker successfully logged into a new machine on the network.

在AD Log看到 在09:10之後 最早的rlee這個人的登錄是在

image

然後也可以找到最早的登入時間
image

他本來都在刷22然後443
但突然出現445 之後就可以登入了
所以就想說試試看
就中了
image

結論 #

我以為我的硬碟空間很夠,結果並沒有

image

主辦提供的VM都開不起來,一整個我好爛🥲
但還是感謝AIS3和比賽當天才第一次見面的隊友們
玩到後面真的覺得很好玩還想繼續玩下去,可惜時間有限
雖然我真的好菜,勇奪最後一名
image

但是能還見到又一陣子沒見到的朋友們,開心開心🥰

點我展開

||很猶豫要不要公開,但反正寫得這麼爛也不會有人看嘿嘿||