journal article·2024-03-12Open access

A Vulnerability Scanning Method for Web Services in Embedded Firmware

Xiaocheng Ma, Chenyv Yan, Yunchao Wang, Qiang Wei, Yunfeng Wang

Applied Sciences· Volume 14· Issue 6

Abstract

As the Internet of Things (IoT) era arrives, the proliferation of IoT devices exposed to the Internet presents a significant challenge to device security. Firmware is software that operates within Internet of Things (IoT) devices, directly governing their behaviors and functionalities. Consequently, the security of firmware is critical to shielding IoT devices from potential threats. In order to enable users to operate a device intuitively, firmware commonly provides a web interface. Consequently, this interface frequently serves as the primary attack goal in Internet of Things (IoT) devices, rendering them susceptible to numerous cyber-attacks. Unfortunately, web services have complex data interactions and implicit dependencies, and it is not easy to balance efficiency and accuracy during the analysis process, leading to heavy overhead. This paper proposes a lightweight vulnerability scanning approach, WFinder, designed explicitly for embedded firmware web services to perform vulnerability checks on backend binary files in firmware. WFinder uses static analysis to focus on identifying vulnerabilities in boundary binary files related to web services in firmware. Initially, the approach identifies boundary binary files and external data entry points based on front-end and back-end associativity features. Subsequently, rules are formulated to filter hazardous functions to narrow the analysis targets. Finally, the method generates sensitive call paths from the external data input points to the hazardous functions and conducts a lightweight taint analysis along these paths to uncover potential vulnerabilities. We implemented a prototype of WFinder and evaluated it on the firmware of ten devices from five well-known manufacturers. We discovered thirteen potential vulnerabilities, eight of which were confirmed by the CNVD, and assigned them CNVD identification numbers. Compared with the most advanced tool, SATC, WFinder was more efficient at discovering more bugs on the test set. These results indicate that WFinder is effective at detecting bugs in embedded web services.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Malware Detection Techniques · Web Application Security Vulnerabilities · Software Testing and Debugging Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Cyberspace Security, Information Engineering University, Zhengzhou 450007, China

Funding

National Key Research and Development Program of China

References (32)

Show source-provided references
1. GSMA (2020, June 01). June 2020. Available online: https://www.gsma.com/.
2. (2018, April 16). Boofuzz. Available online: https://github.com/jtpereyda/boofuzz.
3. Chen, J., Diao, W., Zhao, Q., Zuo, C., Lin, Z., Wang, X., Lau, W.C., Sun, M., Yang, R., and Zhang, K. (2018, January 18–21). IoTFuzzer: Discovering Memory Corruptions in IoT Through App-based Fuzzing. Proceedings of the Network and Distributed System Security Symposium, San Diego, CA, USA.10.14722/ndss.2018.23159 ↗
4. Feng, X., Sun, R., Zhu, X., Xue, M., Wen, S., Liu, D., Nepal, S., and Xiang, Y. (2021, January 15–19). Snipuzz: Black-box fuzzing of iot firmware via message snippet inference. Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, Virtual Event.10.1145/3460120.3484543 ↗
5. Ma, X., Zeng, Q., Chi, H., and Luo, L. (2023, January 18–22). No More Companion Apps Hacking but One Dongle: Hub-Based Blackbox Fuzzing of IoT Firmware. Proceedings of the 21st Annual International Conference on Mobile Systems, Applications and Service, Helsinki, Finland.10.1145/3581791.3596857 ↗
6. Chen, D.D., Woo, M., Brumley, D., and Brumley, D. (2016, January 21–24). Towards automated dynamic analysis for linux-based embedded firmware. Proceedings of the Network and Distributed System Security Symposium, San Diego, CA, USA.10.14722/ndss.2016.23415 ↗
7. Kim, M., Kim, D., Kim, E., Kim, S., Jang, Y., and Kim, Y. (2020, January 7–11). Firmae: Towards large-scale emulation of iot firmware for dynamic analysis. Proceedings of the Annual Computer Security Applications Conference, Austin, TX, USA.10.1145/3427228.3427294 ↗
8. Zheng, Y., Davanian, A., Yin, H., Song, C., Zhu, H., and Sun, L. (2019, January 14–16). FIRM-AFL: High-Throughput Greybox Fuzzing of IoT Firmware via Augmented Process Emulation. Proceedings of the USENIX Security Symposium, Santa Clara, CA, USA.
9. Cheng, K., Li, Q., Wang, L., Chen, Q., Zheng, Y., Sun, L., and Liang, Z. (2018, January 25–28). DTaint: Detecting the taint-style vulnerability in embedded device firmware. Proceedings of the 2018 48th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN), Luxembourg.10.1109/DSN.2018.00052 ↗
10. Zhu, L., Fu, X., Yao, Y., Zhang, Y., and Wang, H. (2019, January 5–8). FIoT: Detecting the memory corruption in lightweight IoT device firmware. Proceedings of the 2019 18th IEEE International Conference On Trust, Security and Privacy In Computing And Communications/13th IEEE International Conference On Big Data Science And Engineering (TrustCom/BigDataSE), Rotorua, New Zealand.10.1109/TrustCom/BigDataSE.2019.00041 ↗
11. Redini, N., Machiry, A., Wang, R., Spensky, C., Continella, A., Shoshitaishvili, Y., Kruegel, C., and Vigna, G. (2020, January 18–21). Karonte: Detecting insecure multi-binary interactions in embedded firmware. Proceedings of the 2020 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA.10.1109/SP40000.2020.00036 ↗
12. Chen, L., Wang, Y., Cai, Q., Zhan, Y., Hu, H., Linghu, J., Hou, Q., Zhang, C., Duan, H., and Xue, Z. (2021, January 11–13). Sharing more and checking less: Leveraging common input keywords to detect bugs in embedded systems. Proceedings of the 30th USENIX Security Symposium, Virtual Event.
13. A static localization method for firmware vulnerabilities based on front-end and back-end correlation analysis
14. Cheng, K., Fang, D., Qin, C., Wang, H., Zheng, Y., and Yu, N. (2021, January 22–24). Automatic inference of taint sources to discover vulnerabilities in soho router firmware. Proceedings of the IFIP International Conference on ICT Systems Security and Privacy Protection, Oslo, Norway.10.1007/978-3-030-78120-0_6 ↗
15. Discovering vulnerabilities in COTS IoT devices through blackbox fuzzing web management interface
16. Kampourakis, V., Chatzoglou, E., Kambourakis, G., Dolmes, A., and Zaroliagis, C. (2022). Wpaxfuzz: Sniffing out vulnerabilities in wi-fi implementations. Cryptography, 6.10.3390/cryptography6040053 ↗
17. Your wap is at risk: A vulnerability analysis on wireless access point web-based management interfaces10.1155/2022/1833062 ↗
18. Chatzoglou, E., Kampourakis, V., and Kambourakis, G. (2023). Bl0ck: Paralyzing 802.11 connections through Block Ack frames. arXiv.
19. How is your Wi-Fi connection today? DoS attacks on WPA3-SAE
20. Srivastava, P., Peng, H., Li, J., Okhravi, H., Shrobe, H., and Payer, M. (2019, January 15). Firmfuzz: Automated iot firmware introspection and analysis. Proceedings of the 2nd International ACM Workshop on Security and Privacy for the Internet-of-Things, New York, NY, USA.10.1145/3338507.3358616 ↗
21. Bellard, F. (2005, January 10–15). QEMU, a fast and portable dynamic translator. Proceedings of the USENIX Annual Technical Conference, FREENIX Track, Anaheim, CA, USA.
22. Chen, L., Cai, Q., Ma, Z., Wang, Y., Hu, H., Shen, M., Liu, Y., Guo, S., Duan, H., and Jiang, K. (2022, January 7–11). SFuzz: Slice-based Fuzzing for Real-Time Operating Systems. Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, New York, NY, USA.10.1145/3548606.3559367 ↗
23. Yu, B., Wang, P., Yue, T., and Tang, Y. (2019, January 11–15). Poster: Fuzzing iot firmware via multi-stage message generation. Proceedings of the 2019 ACM SIGSAC Conference on Computer and Communications Security, London, UK.10.1145/3319535.3363247 ↗
24. Shoshitaishvili, Y., Wang, R., Salls, C., Stephens, N., Polino, M., Dutcher, A., Grosen, J., Feng, S., Hauser, C., and Kruegel, C. (2016, January 22–26). Sok: (state of) the art of war: Offensive techniques in binary analysis. Proceedings of the 2016 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA.10.1109/SP.2016.17 ↗
25. (2024, February 01). Binwalk. Available online: https://github.com/ReFirmLabs/binwalk.
26. (2024, February 01). Interactive Disassembler Professional. Available online: https://hex-rays.com/ida-pro/.
27. (2024, February 01). VulFi. Available online: https://github.com/Accenture/VulFi.
28. (2022, July 14). Tenda. Available online: https://www.tenda.com.cn/.
29. (2015, August 06). D-Link. Available online: http://www.dlink.com.cn/.
30. (2016, May 27). Netgear. Available online: https://www.netgear.com/.
31. (2023, February 28). ToToLink. Available online: https://www.totolink.cn/.
32. (2019, July 24). Vivotek. Available online: https://www.vivotek.com/.