Python Taint v0.39 released: Static Analysis Tool for Detecting Security Vulnerabilities
Python Taint
Static analysis of Python web applications based on theoretical foundations (Control flow graphs, fixed point, data flow analysis)This report presents the static analysis too PyT which has been created to detect security vulnerabilities in Python web applications, in particular applications, built in the framework Flask.
The tool utilizes the monotone framework for the analysis. An AST is built by the builtin AST library, and a CFG is built from the AST. The resulting CFG is then processed so Flask specific features are taken into account. A modified version of the reaching definitions algorithm is now run by the fixed-point algorithm to aid the finding of vulnerabilities. Vulnerabilities are detected based on a definition file containing ’trigger words’. A trigger word is a word that indicates where the flow of the program can be dangerous. The detected vulnerabilities are in the end reported to the developer.
PyT has been created with flexibility in mind. The analysis can be either changed or extended so the performance of PyT can be improved upon. Also, the Flask specific processing can be changed so other frameworks can be analyzed without major changes to PyT. In order to test the abilities of PyT, a number of vulnerable applications were manufactured and PyT was evaluated with these. All the manufactured examples were correctly identified as being vulnerable by PyT.
To test PyT in a more realistic setting it was also run on 7 open source projects. Here no vulnerabilities were found. One of the projects was so big that PyT spent very long on the analysis and was therefore terminated.
Features
- Detect Command injection
- Detect SQL injection
- Detect XSS
- Detect directory traversal
- Get a control flow graph
- Get a def-use and/or a use-def chain
- Search GitHub and analyze hits with PyT
- Scan intraprocedural or interprocedural
- A lot of customization possible
Install
git clone https://github.com/python-security/pyt.git
python setup.py install
pyt -hLeave Python Taint v0.39 released: Static Analysis Tool for Detecting Security Vulnerabilities to:
Read more #web posts
Best Posts From alanna27
We have not curated any of alanna27's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From alanna27
- Telegram Traffic was Hijacked
- The Iran-linked APT group RASPITE is targeting US, Middle East, Europe, and East Asia
- How Blockchain Technology is going to Revolutionize E-commerce
- 3rd-party libraries bug allows attacker to take full control of the affected Drupal websites
- Reddit Data Breaches: Emails, Passwords leaked
- ASAP: Browser Extensions that Stealing Private Information
- UK e-commerce provider data breaches: 1.3 million online fashion shoppers leaked
- Avast: Collecting data only improves CCleaner’s feature
- Android Security Bulletin August 2018: fixed 43 vulnerabilities
- Python Taint v0.39 released: Static Analysis Tool for Detecting Security Vulnerabilities