timeoff-management / timeoff-management-application

Simple yet powerful absence management software for small and medium size business (community edition)
https://TimeOff.Management
MIT License
954 stars 589 forks source link

The whole project is vulnerable to Cross-site Request Forgery vulnerability. #563

Open Th3redTea opened 1 year ago

Th3redTea commented 1 year ago

In brief, all the post requests are vulnerable to Cross-site Request Forgery issues. This is urgent and should be addressed as soon as possible if they are "really" SMBs benefiting from this project. So basically, a CSRF token should be sent with all the post requests and checked in the backend.

1 - Server sends the client a token. 2 - Client submits a form with the token.

read more about CSRF here: https://portswigger.net/web-security/csrf