关联漏洞
描述
CVE-2024-44815
介绍
# Extracting-User-credentials-For-Hathway-Router Via SPI flash-CVE-2024-44815
## Vulnerability Description:
During the security assessment of the Router firmware, it was observed that router login credentials of both web portal and Wi-Fi access point
are stored in plain text in SPI flash memoey. Attacker can extract the login credentials, and which can be misused by attacker.
Vendor of the product: Hathway
Affected product:CM5100-511
Affected Version: 4.1.1.24
Vulnerability Score V3.1: 6.8 Medium AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:H
## Proof Of Concept:
1. Power on the router and do the initial network reconnaissance using Nmap tool.
<img width="666" alt="Network_reconn" src="https://github.com/user-attachments/assets/3df2a170-693b-4647-aedb-2a2ca5c82aea">
2. Teardown the router and locate the UART connection as shown in below Image.
Connect the UART connection to serial console and check the initial boot sequence of router.
Form initial boot sequence we got the hardware and firmware version information.
<img width="352" alt="Tear_down" src="https://github.com/user-attachments/assets/21f1b287-a1af-4c09-af81-eed683db8b4c">
<img width="625" alt="Initial_boot_sequence" src="https://github.com/user-attachments/assets/5c5b2dd9-6042-422f-80ec-f2abe13cf309">
3. From Hardware PCB analysis it was observed that external flash IC(Winbond W25Q64JV) is connected back side,
solder out the flash IC from PCB and using CH431A flash programmer dump the firmware.

4. After dumping the flash firmware,Perform the analysis of dumped binary file and we found that, suspicious login credentials with login name as ‘admin’ and with Wi-Fi access point name in plain text.
<img width="850" alt="credentials_through_string_command" src="https://github.com/user-attachments/assets/b3212761-010a-4296-9332-762817bf8665">
5. Open the dumped firmware in hex view to locate the Suspicious credential’s exact memory location in firmware.


6. We tried to login the web portal and Wi-Fi access point using suspensions credentials found in firmware and it logged in successfully.

7. Even though user changed default credentials, attacker can extract it from firmware by knowing the memory address and also credentials are stored in plain text.
## Authors:
Nitin Ronge(www.linkedin.com/in/nitin-ronge)
Anand Yadav(www.linkedin.com/in/anandyadav6962)
文件快照
[4.0K] /data/pocs/5bf136f97328ee113fa7365504bb0e58a342337b
└── [2.7K] README.md
0 directories, 1 file
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。