LogInjector: Detecting Web Application Log Injection Vulnerabilities
Source abstract
Abstract
Web applications widely use the logging functionality, but improper handling can bring serious security threats. An attacker can trigger the execution of malicious data by writing malicious data to the web application logs and then accessing the view–logs interface, resulting in a vulnerability of the web application log injection. However, detecting this type of vulnerability requires automatic discovery of log-injectable interfaces and view–logs interfaces, which is difficult. In addition, bypasssing the application-specific input-filtering checks to write an effective payload to the log is also challenging. This paper proposes LogInjector, an efficient web application log injection vulnerability detection method. First, it obtains the log storage form and location and then finds the log-injectable interfaces through the extended dynamic crawler. Second, it automatically identifies the web application view–logs interfaces. Finally, LogInjector utilizes a dynamic testing approach based on the feedback-guided mutation to detect web application log injection vulnerabilities. To verify the effectiveness of LogInjector, we test it in 14 popular web applications in real-world cases and compare it with Black Widow, the state-of-the-art web vulnerability scanner. LogInjector detects 16 web application log injection vulnerabilities, including 6 zero-day vulnerabilities, while Black Widow can only detect three log injection vulnerabilities, demonstrating the effectiveness of LogInjector in practice.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Web Application Security Vulnerabilities · Security and Verification in Computing · Software Testing and Debugging Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
College of Electronic Engineering, National University of Defense Technology, Hefei 230037, China
Anhui Province Key Laboratory of Cyberspace Security Situation Awareness and Evaluation, Hefei 230037, China
References (50)
Show source-provided references
1. (2022, June 01). Home—Official Home of the PHPFusion CMS. Available online: https://www.php-fusion.co.uk/.
2. (2022, June 01). CVE—CVE-2020-17449. Available online: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-17449.
3. (2022, June 01). Contao Open Source CMS—Contao. Available online: https://contao.org/.
4. (2022, June 01). Webmin. Available online: https://www.webmin.com/.
5. (2022, June 01). Log Injection Software Attack|OWASP Foundation. Available online: https://owasp.org/www-community/attacks/Log_Injection.
6. Static analysis for detecting taint-style vulnerabilities in web applications10.3233/JCS-2009-0385 ↗
7. Appelt, D., Nguyen, C.D., Briand, L.C., and Alshahwan, N. (2014, January 21–25). Automated testing for SQL injection vulnerabilities: An input mutation approach. Proceedings of the 2014 International Symposium on Software Testing and Analysis, San Jose, CA, USA.10.1145/2610384.2610403 ↗
8. Backes, M., Rieck, K., Skoruppa, M., Stock, B., and Yamaguchi, F. (2017, January 26–28). Efficient and flexible discovery of php application vulnerabilities. Proceedings of the 2017 IEEE European Symposium on Security and Privacy (EuroS&P), Paris, France.10.1109/EuroSP.2017.14 ↗
9. Fang, Y., Li, Y., Liu, L., and Huang, C. (2018, January 12–14). DeepXSS: Cross site scripting detection based on deep learning. Proceedings of the 2018 International Conference on Computing and Artificial Intelligence, Chengdu, China.10.1145/3194452.3194469 ↗
10. Detection of SQL injection based on artificial neural network10.1016/j.knosys.2020.105528 ↗
11. Bertino, E., Shulman, H., and Waidner, M. (2021). webFuzz: Grey-Box Fuzzing for Web Applications. Computer Security—ESORICS 2021, Springer International Publishing.
12. Simulating SQL injection vulnerability exploitation using Q-learning reinforcement learning agents
13. GAXSS: Effective Payload Generation Method to Detect XSS Vulnerabilities Based on Genetic Algorithm
14. Lee, S., Wi, S., and Son, S. (2022, January 25–29). Link: Black-Box Detection of Cross-Site Scripting Vulnerabilities Using Reinforcement Learning. Proceedings of the ACM Web Conference, Lyon, France.10.1145/3485447.3512234 ↗
15. Zhao, J., Lu, Y., Zhu, K., Chen, Z., and Huang, H. (2022). Cefuzz: An Directed Fuzzing Framework for PHP RCE Vulnerability. Electronics, 11.10.3390/electronics11050758 ↗
16. Balzarotti, D., Cova, M., Felmetsger, V.V., and Vigna, G. (2007, January 28–31). Multi-module vulnerability analysis of web-based applications. Proceedings of the 14th ACM Conference on Computer and Communications Security, Alexandria, VA, USA.10.1145/1315245.1315250 ↗
17. Dahse, J., and Holz, T. (2014, January 20–22). Static Detection of Second-Order Vulnerabilities in Web Applications. Proceedings of the 23rd USENIX Security Symposium (USENIX Security 14), San Diego, CA, USA.
18. Olivo, O., Dillig, I., and Lin, C. (2015, January 12–16). Detecting and exploiting second order denial-of-service vulnerabilities in web applications. Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security, Denver, CO, USA.10.1145/2810103.2813680 ↗
19. Yan, L., Li, X., Feng, R., Feng, Z., and Hu, J. (2013, January 29). Detection method of the second-order SQL injection in Web applications. Proceedings of the International Workshop on Structured Object-Oriented Formal Language and Method, Queenstown, New Zealand.10.1007/978-3-319-04915-1_11 ↗
20. Analyzing the Accuracy and Time Costs of Web Application Security Scanners
21. Bau, J., Bursztein, E., Gupta, D., and Mitchell, J. (2010, January 16–19). State of the art: Automated black-box web application vulnerability testing. Proceedings of the 2010 IEEE Symposium on Security and Privacy, Oakland, CA, USA.10.1109/SP.2010.27 ↗
22. Vieira, M., Antunes, N., and Madeira, H. (2009, January 2). Using web security scanners to detect vulnerabilities in web services. Proceedings of the IEEE/IFIP International Conference on Dependable Systems & Networks, Lisbon, Portugal.10.1109/DSN.2009.5270294 ↗
23. Doupé, A., Cova, M., and Vigna, G. (2010, January 8–9). Why Johnny can’t pentest: An analysis of black-box web vulnerability scanners. Proceedings of the International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment, Bonn, Germany.10.1007/978-3-642-14215-4_7 ↗
24. Parvez, M., Zavarsky, P., and Khoury, N. (2015, January 14–16). Analysis of effectiveness of black-box web application scanners in detection of stored SQL injection and stored XSS vulnerabilities. Proceedings of the 2015 10th International Conference for Internet Technology and Secured Transactions (ICITST), London, UK.10.1109/ICITST.2015.7412085 ↗
25. MCaLlister, S., KirDa, E., and Kruegel, C. (2008, January 15–17). Leveraging User Interactions for In-Depth Testing of Web Applications. Proceedings of the International Symposium on Recent Advances in Intrusion Detection, Cambridge, MA, USA.
26. Doupé, A., Cavedon, L., Kruegel, C., and Vigna, G. (2012, January 8–10). Enemy of the State: A {State-Aware}{Black-Box} Web Vulnerability Scanner. Proceedings of the 21st USENIX Security Symposium (USENIX Security 12), Bellevue, WA, USA.
27. Duchene, F., Rawat, S., Richier, J.L., and Groz, R. (2014, January 3–5). KameleonFuzz: Evolutionary fuzzing for black-box XSS detection. Proceedings of the 4th ACM Conference on Data and Application Security and Privacy, San Antonio, TX, USA.10.1145/2557547.2557550 ↗
28. Database traffic interception for graybox detection of stored and context-sensitive XSS10.1145/3399668 ↗
29. Eriksson, B., Pellegrino, G., and Sabelfeld, A. (2021, January 24–27). Black Widow: Blackbox Data-driven Web Scanning. Proceedings of the 2021 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA.10.1109/SP40001.2021.00022 ↗
30. Alkhalaf, M.A. (2014). Automatic Detection and Repair of Input Validation and Sanitization Bugs, University of California.10.1145/2610384.2610401 ↗
31. Chin, E., and Wagner, D. (2009, January 13). Efficient character-level taint tracking for Java. Proceedings of the 2009 ACM Workshop on Secure Web Services, Chicago, IL, USA.10.1145/1655121.1655125 ↗
32. CANDID: Dynamic candidate evaluations for automatic prevention of SQL injection attacks10.1145/1698750.1698754 ↗
33. Bulekov, A., Jahanshahi, R., and Egele, M. (2021, January 11–13). Saphire: Sandboxing {PHP} Applications with Tailored System Call Allowlists. Proceedings of the 30th USENIX Security Symposium (USENIX Security 21), Virtual, CA, USA.
34. (2022, June 01). Qianlitp/Crawlergo: A Powerful Browser Crawler for Web Vulnerability Scanners. Available online: https://github.com/Qianlitp/crawlergo.
35. (2022, June 01). History API—Web APIs | MDN. Available online: https://developer.mozilla.org/en-US/docs/Web/API/History_API.
36. (2022, June 01). setTimeout()—Web APIs | MDN. Available online: https://developer.mozilla.org/en-US/docs/Web/API/setTimeout.
37. (2022, June 01). html5lib/html5lib-Python: Standards-Compliant Library for Parsing and Serializing HTML Documents and Fragments in Python. Available online: https://github.com/html5lib/html5lib-PYTHON.
38. (2022, June 01). Easy Digital Downloads—Simple eCommerce for Selling Digital Files—WordPress plugin | WordPress.org. Available online: https://wordpress.org/plugins/easy-digital-downloads/.
39. (2022, June 01). SuiteCRM—Open Source CRM Software Application for Businesses. Available online: https://suitecrm.com/.
40. (2022, June 01). Zen Cart Support—Zen Cart™—Putting the Dream of Your Own Business within Reach of Anyone!. Available online: https://www.zen-cart.com/.
41. (2022, June 01). Free Shopping Cart Application and Open Source Ecommerce Solution. Available online: https://www.abantecart.com/.
42. (2022, June 01). Maxsite CMS. Available online: https://max-3000.com/.
43. (2022, June 01). DSGVO All in one for WP—WordPress Plugin | WordPress.org. Available online: https://wordpress.org/plugins/dsgvo-all-in-one-for-wp/.
44. (2022, June 01). WP Photo Album Plus—WordPress Plugin | WordPress.org. Available online: https://wordpress.org/plugins/wp-photo-album-plus/.
45. (2022, June 01). FREE Shopping Cart and Open Source eCommerce Platform—Start Selling Online for Free. Available online: https://www.oscommerce.com/.
46. (2022, June 01). Better WordPress Google XML Sitemaps (Support Sitemap Index, Multi-Site and Google News)—WordPress Plugin | WordPress.org. Available online: https://wordpress.org/plugins/bwp-google-xml-sitemaps/.
47. (2022, June 01). CE Phoenix Cart, Free Open Source Shopping Cart | CE Phoenix Cart. Available online: https://phoenixcart.org/.
48. Anagandula, K., and Zavarsky, P. (2020, January 24–26). An Analysis of Effectiveness of Black-Box Web Application Scanners in Detection of Stored SQL Injection and Stored XSS Vulnerabilities. Proceedings of the 2020 3rd International Conference on Data Intelligence and Security (ICDIS), South Padre Island, TX, USA.10.1109/ICDIS50059.2020.00012 ↗
49. (2022, June 01). Cache Poisoning | OWASP Foundation. Available online: https://owasp.org/www-community/attacks/Cache_Poisoning.
50. (2022, June 01). What is HTTP Request Smuggling? Tutorial & Examples|Web Security Academy. Available online: https://portswigger.net/web-security/request-smuggling.