Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

diogocp/ssoft-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discovering vulnerabilities in PHP web applications

The aim of this project is to study how vulnerabilities in PHP code can be detected statically by means of taint and input validation analysis.

Running the analysis tool

Run analyzer.py in the project root directory. The name of the file to analyze may be passed in as an argument. If no argument is specified, the program will read from stdin.

Example:

./analyzer.py slices/slice1.json

To run the tests:

./run_tests

Parsing PHP code

If you have Node.js installed, you can convert PHP into a JSON AST by doing

cd php-parser
npm install
npm run parser -- slice.php

This will create a file slice.json with the AST.