Dangling References in Multi-configuration and Dynamic PHP-Based Web Applications

被引:0
|
作者
Hung Viet Nguyen [1 ]
Hoan Anh Nguyen [1 ]
Tung Thanh Nguyen [1 ]
Anh Tuan Nguyen [1 ]
Nguyen, Tien N. [1 ]
机构
[1] Iowa State Univ, Elect & Comp Engn Dept, Ames, IA 50011 USA
来源
2013 28TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE) | 2013年
基金
美国国家科学基金会;
关键词
Dangling References; Web Code Analysis; LOCALIZATION;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
PHP is a dynamic language popularly used in Web development for writing server-side code to dynamically create multiple versions of client-side pages at run time for different configurations. A PHP program contains code to be executed or produced for multiple configurations/versions. That dynamism and multi-configuration nature leads to dangling references. Specifically, in the execution for a configuration, a reference to a variable or a call to a function is dangling if its corresponding declaration cannot be found. We conducted an exploratory study to confirm the existence of such dangling reference errors including dangling cross-language and embedded references in the client-side HTML/JavaScript code and in data-accessing SQL code that are embedded in scattered PHP code. Dangling references have caused run-time fatal failures and security vulnerabilities. We developed DRC, a static analysis method to detect such dangling references. DRC uses symbolic execution to collect PHP declarations/references and to approximate all versions of the generated output, and then extracts embedded declarations/references. It associates each detected declaration/reference with a conditional constraint that represents the execution paths (i.e. configurations/versions) containing that declaration/reference. It then validates references against declarations via a novel dangling reference detection algorithm. Our empirical evaluation shows that DRC detects dangling references with high accuracy. It revealed 83 yet undiscovered defects caused by dangling references.
引用
收藏
页码:399 / 409
页数:11
相关论文
共 50 条
  • [1] Dangling references in multi-configuration and dynamic PHP-based Web applications
    Nguyen, Hung Viet
    Nguyen, Hoan Anh
    Nguyen, Tung Thanh
    Nguyen, Anh Tuan
    Nguyen, Tien N.
    2013 28th IEEE/ACM International Conference on Automated Software Engineering, ASE 2013 - Proceedings, 2013, : 399 - 409
  • [2] DRC: A Detection Tool for Dangling References in PHP-Based Web Applications
    Hung Viet Nguyen
    Hoan Anh Nguyen
    Tung Thanh Nguyen
    Nguyen, Tien N.
    PROCEEDINGS OF THE 35TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2013), 2013, : 1299 - 1302
  • [3] Output-oriented Refactoring in PHP-based Dynamic Web Applications
    Hoan Anh Nguyen
    Hung Viet Nguyen
    Tung Thanh Nguyen
    Nguyen, Tien N.
    2013 29TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), 2013, : 150 - 159
  • [4] An Architecture of Dynamically Adaptive PHP-based Web Applications
    Nakajima, Shin
    2011 18TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2011), 2011, : 203 - 210
  • [5] ShellBreaker: Automatically detecting PHP-based malicious web shells
    Li, Yu
    Huang, Jin
    Ikusan, Ademola
    Mitchell, Milliken
    Zhang, Junjie
    Dai, Rui
    COMPUTERS & SECURITY, 2019, 87
  • [6] Use of Design Patterns in PHP-Based Web Application Frameworks
    Paikens, Andris
    Arnicans, Guntis
    BALTIC JOURNAL OF MODERN COMPUTING, 2008, 733 : 53 - 71
  • [7] Multi-configuration optical system, with applications in night vision devices
    Mirzu, M
    Copot, G
    SIOEL '99: SIXTH SYMPOSIUM ON OPTOELECTRONICS, 2000, 4068 : 627 - 632
  • [8] A Multi-configuration Part-based Person Detector
    Garcia-Martin, Alvaro
    Evangelio, Ruben Heras
    Sikora, Thomas
    2014 INTERNATIONAL CONFERENCE ON SIGNAL PROCESSING AND MULTIMEDIA APPLICATIONS (SIGMAP), 2014, : 321 - 328
  • [9] Managing multi-configuration hardware via dynamic working set analysis
    Dhodapkar, AS
    Smith, JE
    29TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE, PROCEEDINGS, 2002, : 233 - 244
  • [10] Study on Dynamic Modeling and Variable Structure Control of Spaceborne Antenna with Multi-Configuration
    Yun Jintian
    Jin Guoguang
    Li Kun
    2009 INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY AND COMPUTER SCIENCE, VOL 1, PROCEEDINGS, 2009, : 605 - 608