Design of an Automated SQL Injection Detection Tool for Web Applications
Abstract
World Wide Web (Web) applications have become an important interface for network services. However, the direct connection among user input, business logic, and database operations has also increased security risks. SQL injection vulnerabilities remain an important issue affecting Web application security. To address the low efficiency and repetitive nature of traditional manual detection, this paper designs an automated SQL injection vulnerability detection tool for Web applications. By analyzing the principles of SQL injection and common attack types, a detection process consisting of parameter extraction, payload construction, request transmission, response analysis, and vulnerability confirmation is established. The tool is tested in experimental environments involving MySQL, a Content Management System (CMS), and Damn Vulnerable Web Application (DVWA). Experimental results show that the tool can identify different types of SQL injection vulnerabilities based on characteristics such as page content, error messages, response length, and response time. It can improve vulnerability detection efficiency and the consistency of result interpretation, providing a useful reference for Web application security testing.
References
- Halfond, W. G. J., Viegas, J., & Orso, A. (2006). A classification of SQL-injection attacks and countermeasures.Proceedings of the International Symposium on Secure Software Engineering.
- Halfond, W. G. J., & Orso, A. (2005). AMNESIA: Analysis and monitoring for NEutralizing SQL-injection attacks.Proceedings of the 20th IEEE/ACM International Conference on Automated Software Engineering, 174-183. DOI: 10.1145/1101908.1101935.
- Jovanovic, N., Krügel, C., & Kirda, E. (2006). Pixy: A static analysis tool for detecting web application vulnerabilities.Proceedings of the 2006 IEEE Symposium on Security and Privacy, 258-263. DOI: 10.1109/SP.2006.29.
- Huang, Y.-W., Yu, F., Hang, C., Tsai, C.-H., Lee, D. T., & Kuo, S.-Y. (2004). Securing web application code by static analysis and runtime protection.Proceedings of the 13th International Conference on World Wide Web, 40-52. DOI: 10.1145/988672.988679.
- Ciampa, A., Visaggio, C. A., & Di Penta, M. (2010). A heuristic-based approach for detecting SQL-injection vulnerabilities in web applications.Proceedings of the ICSE Workshop on Software Engineering for Secure Systems. DOI: 10.1145/1809100.1809107.
- Xiao, Z., Zhou, Z., Yang, W., & Deng, C. (2017). An approach for SQL injection detection based on behavior and response analysis.Proceedings of the 2017 IEEE 9th International Conference on Communication Software and Networks, 1437-1442. DOI: 10.1109/ICCSN.2017.8230346.