kanb1 / SecurityExamproject

0 stars 0 forks source link

What is this about? Webshop der sælger bøger (ting)

tools and technologies:

Frontend Vanilla js vanilla css

Why? To not automate security issues, and handle them manually like a real person

Backend Express js explore helmet and CORS

Why? We can create routes with express and create our own middleware and authorization functions to show we know what we are talking about we can protect the headers and CORS

Database Postgres (med Prisma ??)

Why? Because we are selling books, the users can search between authors, types of books, titles. So we have relations


Features / things our app should have/handle

Users (users har forskellige slags permissions / admin - normal bruger - non-logged visitor) Books (table in postgres) sale order


I forhold til sikkerhed:

-go through his slides and start making a list of MUSTS we have to show

OWASP Cheatsheet Series: Forgot password flow: https://cheatsheetseries.owasp.org/cheatsheets/Forgot_Password_Cheat_Sheet.html Authentication: https://cheatsheetseries.owasp.org/cheatsheets/Authentication_Cheat_Sheet.html Authorization: https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html Clickjacking defense: https://cheatsheetseries.owasp.org/cheatsheets/Clickjacking_Defense_Cheat_Sheet.html Cross Site Request Forgery prevention: https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html Denial of Service: https://cheatsheetseries.owasp.org/cheatsheets/Denial_of_Service_Cheat_Sheet.html Error Handling: https://cheatsheetseries.owasp.org/cheatsheets/Error_Handling_Cheat_Sheet.html File Uploads: https://cheatsheetseries.owasp.org/cheatsheets/File_Upload_Cheat_Sheet.html Password Storage Cheatsheet: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html Session Management: https://cheatsheetseries.owasp.org/cheatsheets/Session_Management_Cheat_Sheet.html

Add rel="noopener noreferrer" to external anchor tags (links). Noopener prevents access to window.opener. Noreferrer strips the information about the original page (privacy)