Efficient and Flexible Discovery of PHP Application Vulnerabilities
Authors:
- Michael BackesMBMichael Backes
- Konrad RieckKRKonrad Rieck
- Malte SkoruppaMSMalte Skoruppa
- Ben StockBSBen Stock
- Fabian YamaguchiFYFabian Yamaguchi
- 1 April 2017
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 334-349
Abstract
The Web today is a growing universe of pages and applications teeming with interactive content. The security of such applications is of the utmost importance, as exploits can have a devastating impact on personal and economic levels. The number one programming language in Web applications is PHP, powering more than 80% of the top ten million websites. Yet it was not designed with security in mind and, today, bears a patchwork of fixes and inconsistently designed functions with often unexpected and hardly predictable behavior that typically yield a large attack surface. Consequently, it is prone to different types of vulnerabilities, such as SQL Injection or Cross-Site Scripting. In this paper, we present an interprocedural analysis technique for PHP applications based on code property graphs that scales well to large amounts of code and is highly adaptable in its nature. We implement our prototype using the latest features of PHP 7, leverage an efficient graph database to store code property graphs for PHP, and subsequently identify different types of Web application vulnerabilities by means of programmable graph traversals. We show the efficacy and the scalability of our approach by reporting on an analysis of 1,854 popular open-source projects, comprising almost 80 million lines of code.Keywords
This publication has 24 references indexed in Scilit:
- Exploring and enforcing security guarantees via program dependence graphs2015
- SIGMA: A Semantic Integrated Graph Matching Approach for identifying reused functions in binary codeDigital Investigation, 2015
- Checking probabilistic noninterference using JOANAit - Information Technology, 2014
- Stranger: An Automata-Based String Analysis Tool for PHP2010
- Sound and precise analysis of web applications for injection vulnerabilitiesACM SIGPLAN Notices, 2007
- Finding application errors and security flaws using PQLACM SIGPLAN Notices, 2005
- Securing web application code by static analysis and runtime protection2004
- Program analysis via graph reachabilityInformation and Software Technology, 1998
- A framework for source code search using program patternsIEEE Transactions on Software Engineering, 1994
- The program dependence graph and its use in optimizationACM Transactions on Programming Languages and Systems, 1987