• Home
  • Blog
  • CECS141 – Flask _ need help fixing some basic python code issues.

CECS141 – Flask _ need help fixing some basic python code issues.

0 comments

Hi, how are you doing?

Starting with the website app and template code given, you are to fix it to be more secure. You can use whatever server or environment you want but please I want it to work on Ubuntu Server 20.04. So, it is a Flask site running on localhost and the code has some basic bugs or security issues that need to be fixed.

fix the website app and template to allow the following security features:

1. Usernames cannot be easily discovered.

2. Cookies work correctly to make sure you are logged in and you can only see your own private

profile.

3. Cookie random numbers cannot be easily guessed.

4. Cookies disappear after a few days, not just when the browser closes.

5. “Login” uses POST not GET.

6. Logout works (you’ll need to create this feature).

Useful link:

https://flask.palletsprojects.com/en/1.1.x/

Here you will find the website app and template:

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}