arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.11996cs.CR
收藏

您不应通过:缓解对传统Web应用程序的SQL注入攻击

You shall not pass: Mitigating SQL Injection Attacks on Legacy Web Applications

Rasoul Jahanshahi, Adam Doupé, Manuel Egele

摘要:

SQL注入(SQLi)攻击对Web应用程序的安全性构成了重大威胁。现有的方法不支持面向对象的编程,这使得这些方法无法保护诸如WordPress、Joomla或Drupal等真实世界的Web应用程序免受SQLi攻击。我们提出了一种新的混合静态-动态分析的PHP Web应用程序,限制每个PHP功能访问数据库。我们的工具SQLBlock将Web应用程序中易受攻击的PHP函数的攻击面减少到一组查询描述符,这些描述符展示了PHP函数的良性功能。我们实现了SQLBlock作为MySQL和PHP的插件。我们的方法不需要对Web应用程序进行任何修改。我们评估了Wordpress,Joomla,Drupal,Magento及其插件中的11个SQLi漏洞。我们证明了SQLBlock成功地阻止了所有11个SQLi漏洞,性能开销可以忽略不计(即,在高负载的Web服务器上最多为3%)

英文摘要:

SQL injection (SQLi) attacks pose a significant threat to the security of web applications. Existing approaches do not support object-oriented programming that renders these approaches unable to protect the real-world web apps such as Wordpress, Joomla, or Drupal against SQLi attacks. We propose a novel hybrid static-dynamic analysis for PHP web applications that limits each PHP function for accessing the database. Our tool, SQLBlock, reduces the attack surface of the vulnerable PHP functions in a web application to a set of query descriptors that demonstrate the benign functionality of the PHP function. We implement SQLBlock as a plugin for MySQL and PHP. Our approach does not require any modification to the web app. W evaluate SQLBlock on 11 SQLi vulnerabilities in Wordpress, Joomla, Drupal, Magento, and their plugins. We demonstrate that SQLBlock successfully prevents all 11 SQLi exploits with negligible performance overhead (i.e., a maximum of 3% on a heavily-loaded web server)

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑