Netinfo Security ›› 2022, Vol. 22 ›› Issue (9): 40-45.doi: 10.3969/j.issn.1671-1122.2022.09.005

Previous Articles     Next Articles

A Null Pointer Reference Mining System Based on Data Flow Tracing

WEN Weiping(), LIU Chengjie, SHI Lin   

  1. School of Software and Microelectronics, Peking University, Beijing 100080, China
  • Received:2022-05-31 Online:2022-09-10 Published:2022-11-14
  • Contact: WEN Weiping E-mail:weipingwen@pku.edu.cn

Abstract:

Null pointer dereference is a common defect in programming, which often causes the program crash or abnormal exit. At the same time, attackers can also use null pointer dereference to complete arbitrary read and write operations, leading to information disclosure. Java is a widely used language, and also suffers from null pointer dereference due to insufficient checks on dereference. In order to avoid the potential risk, this paper proposed a null pointer dereference detection system based on data flow analysis and designed a static analysis tool jvd. This tool implemented analysis on Jimple and covered multiple container propagation cases, especially in containers by special treatment, which effectively reduced the false negative rate in complex scenarios. This paper completed the experiment and compared jvd with several popular tools like SpotBugs and Infer on CWE476 test dataset in Juliet Test Suite, which shows that jvd could be used in multiple null pointer transmission and achieved excellent performance in high accuracy situation.

Key words: data flow analysis, null pointer dereference, Jimple, container propagation

CLC Number: