arrow
Return

PHPJoy: A Novel Extended Graph-Based PHP Code Analysis Framework

delete2025-09-26
delete0
PRE
AI
Y
Youkun Shi
Y
Yuan Zhang
T
Tianhan Luo
杨
杨广亮 (Guangliang Yang)
S
Shengke Ye
C
Chengyu Yang
F
Fengyu Liu
X
Xiapu Luo
M
Min Yang
DOI:10.1109/TSE.2025.3614304delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Nowadays, the PHP language is widely used in web development. Owing to PHP’s inherent flexibility and dynamic language features (e.g., cross-module dependencies and runtime polymorphism), PHP applications are prone to various security vulnerabilities, such as XSS and SQL injection. As an effective PHP semantic understanding and security vetting technique, static program analysis has been widely applied. However, prior work faced difficulties in dealing with diverse and dynamic PHP features, which caused serious false negatives (e.g., call target missing). In this paper, we propose a novel extended graph-based program analysis approach, called PHPJoy, that can effectively and universally learn the semantic landscape of the target PHP program and conduct security validations. Specifically, PHPJoy first performs fine-grained program analysis (i.e., cross-module analysis and field-level analysis) for the purpose of learning the extended semantic graphs. Then, based on the graph-based semantic information, PHPJoy universally models various security issues by efficiently utilizing a new security-oriented graph query framework, which provides rich and easy-to-use graph query APIs and a high-performance cache-and-prefetch strategy. We evaluate PHPJoy on 333 popular PHP programs. The results show that PHPJoy can effectively discover 269,901,982 semantic graph edges, improving by 23.76% when compared to the existing analysis tools. Our further analysis also shows that the runtime analysis overhead is reduced by 76.54%. Furthermore, PHPJoy successfully hunts 53 zero-day security vulnerabilities in the wild, which verifies the practicality of PHPJoy.
Keywords:
PHP program analysis
web security
vulnerability detection

Journal

IEEE Transactions on Software Engineering cover
IEEE Transactions on Software Engineering
IF:
5.6
Papers:
2.9K
Citations:
1.1W

Organization

F
fudan university
Scholars:
11.8W
Papers: 7.7W
Citations: 121
T
The Hong Kong Polytechnic University
Scholars:
5.1K
Papers: 3.0K
Citations: 17
Cited Papers

Cited Papers

RecurScan: Detecting Recurring Vulnerabilities in PHP Web Applications
err
IF0
err2024-05-13
err0
PREAI
errYoukun Shi; Yuan Zhang; Tianhao Bai; Lei Zhang; Xin Tan; Min Yang
errShare
errSave
Securing web application code by static analysis and runtime protection
err2004-05-17
err0
PREAI
errYao-Wen Huang; Fang Yu; Christian Hang; Chung-Hung Tsai; Der-Tsai Lee; Sy-Yen Kuo
errShare
errSave
Source Code Authorship Attribution Using Long Short-Term Memory Based Networks
err2017-08-12
err0
PREAI
errBander Alsulami; Edwin Dauber; Richard Harang; Spiros Mancoridis; Rachel Greenstadt
errShare
errSave
Efficient and Flexible Discovery of PHP Application Vulnerabilities
err2017-04-01
err0
PREAI
errMichael Backes; Konrad Rieck; Malte Skoruppa; Ben Stock; Fabian Yamaguchi
errShare
errSave
GraphSPD: Graph-Based Security Patch Detection with Enriched Code Semantics
err2023-05-01
err0
PREAI
errShu Wang; Xinda Wang; Kun Sun; Sushil Jajodia; Haining Wang; Qi Li
errShare
errSave
VulDeePecker: A Deep Learning-Based System for Vulnerability Detection
err2018-01-01
err0
errOAAI
errZhen Li; Deqing Zou; Shouhuai Xu; Xinyu Ou; Hai Jin; Sujuan Wang; Zhijun Deng; Yuyi Zhong
errShare
errSave
researcher View more