Nytro Posted December 18, 2011 Report Posted December 18, 2011 RIPS - A static source code analyser forvulnerabilities in PHP scriptsJohannes DahseSeminar WorkatChair for Network and Data SecurityProf. Dr. Jörg Schwenkadvised through Dominik Birk23.08.2010Contents1 Introduction 12 Motivation 23 Web application security 33.1 Cross-Site Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43.2 SQL Injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53.3 Other vulnerabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Static source code analysis 74.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74.2 Model construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74.3 Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84.3.1 Taint analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84.3.2 Intraprocedural and interprocedural analysis . . . . . . . . . . . . . . . 94.4 Results processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 RIPS implementation 115.1 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115.2 Model construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125.2.1 Lexical and semantic analysis . . . . . . . . . . . . . . . . . . . . . . 125.2.2 Parsing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135.2.3 Control flow analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . 155.3 Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155.3.1 Taint analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155.3.2 Intraprocedural and interprocedural analysis . . . . . . . . . . . . . . . 165.4 Web interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175.5 Scan results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195.6 Limitations and future work . . . . . . . . . . . . . . . . . . . . . . . . . . . 206 Related work 227 Summary 24Download:http://garr.dl.sourceforge.net/project/rips-scanner/rips-paper.pdfSursa: Papers Quote