RomanistHere / Measureland

An independent interactive encyclopedia of searching for accommodation. Community-driven and completely free (FOSS).
https://measureland.org/en/
GNU General Public License v3.0
23 stars 4 forks source link

Add CSRF protection #27

Closed RomanistHere closed 2 years ago

RomanistHere commented 2 years ago

https://stackoverflow.com/questions/20504846/why-is-it-common-to-put-csrf-prevention-tokens-in-cookies https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html https://github.com/pillarjs/understanding-csrf https://www.npmjs.com/package/csrf

It's a severe flow in security, however right now there is no reason for someone to try to exploit it. Worst it can do is to delete some ratings, which are backed up every day.

RomanistHere commented 2 years ago

fixed: https://github.com/RomanistHere/Measureland/commit/905bca67c34aa0ec5465f3c397b11a077fa7c772