Skip to content

testdrivenio/csrf-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSRF in Flask Example

Insecure Flask App

Setup

  1. Create and activate a virtual environment

  2. Install the dependencies:

    pip install -r requirements.txt
  3. Run the Flask app:

    python app.py
  4. Serve the index.html from the "hacker" folder with http.server:

    python -m http.server --directory hacker 8002