Closed r0rshark closed 3 years ago
@r0rshark are these vulnerabilities to be added in the same flask app or a new flask app has to be created for each 5 of these ?
@PulkitMishra let's add all of them to the same app. We may create different files for each vulnerability but still use the same app
In order to showcase how Pysa can be used to detect bugs we created a vulnerable Flask application. Currently the application is only showing Remote Code Execution examples in the rce.py file. We should also add more usecases to show how Pysa can be used to catch other type of vulnerabilities.
The first step is getting familiar with Flask documentation. The application is currently very simple so it doesn't require a deep Flask understanding but the quickstart provides some useful concepts.
The second step is to code these vulnerable functions for showcasing the vulnerable code. Take some time understanding the vulnerability (this is a great opportunity to learn some basic security skills :) )and after that write the code which would be vulnerable to it:
After having implemented the vulnerable functions we should make sure that running Pysa on the app correctly detects the issue
Finally we should create some documentation in the Pysa website to explain the vulnerability and how to fix it. (We have some internal doc I may be able to make public but we may still need to add information on how to fix the issue for Opensource users)