关联漏洞
介绍
# Arbitrary File Read CVE-2024-24919
Here is the alert received on the SIEM

Firstly what is CVE-2024-24919? Here is the description on the NIST website.

After some more research, CVE-2024-24919 is a path traversal attack, which explains the request being made to the '/etc/passwd' directory.

The /etc/passwd directory stores user account information, including the user's username, user ID (UID), group ID (GID), home directory, and login shell
This is enough for me to contain the server, and I'll investigate further for any more signs of compromise.

#
<h3>Investigating the suspisous IP</h3>
First I'll start by checking the source IP on the threat intelligence feed. And it has been flagged as malicious, specifically because of CVE-2024-24919

It has also been reported on AbuseIPDB and VirusTotal


Searching the logs for the source IP shows three events.

Two of the events correlate with what seen was on the SIEM alert.
Investigating the first log (No Event Time) it says the source address is 203.160.68.12 (the suspicious IP).

However, the raw log says that the IP is 203.160.68.13, and this time it's requesting the '/etc/shadow' directory. This directory stores the encrypted password hashes for user accounts on the system. Also searching the logs for 203.160.68.13 shows no results, and it's not flagged in the threat intel feed or on AbuseIPDB/Talos/VirusTotal.

#
<h3>Investigating 203.160.68.13 further</h3>
Checking the logs for the destination IP (172.16.20.146) shows the same logs seen above, and another containing a list of IPs that accessed the server. Here we see 203.160.68.12 did make three separate connections and 203.160.68.13 made only one.

The destination address (172.16.20.146) is a server and it made three connections with 203.160.68.12 and two with 203.160.68.13


#
<h3>Response</h3>
The server (172.16.20.146) has been quarantined and I've blacklisted the two suspicious IPs: 203.160.68.12 and 203.160.68.13. All the impacted users should change their passwords as a precaution.
#
<h3>Summary</h3>
The attackers conducted a path traversal attack, accessing the data within the /etc/passwd and /etc/shadow directories. These files hold user information, including usernames, user IDs, and hashed passwords. If the attackers figure out the hash algorithm used they could figure out the passwords. The server was contained and the suspicious IPs were blacklisted, and all the impacted users should change their passwords as a precaution.
#
文件快照
[4.0K] /data/pocs/295c4a299384b1776cbca5aba9df6bdf3cb8d637
└── [3.6K] README.md
0 directories, 1 file
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。