franklindyer / agora-app

Simple and (hopefully) secure social media application. Also a project for spring 2024 CS 444 cybersecurity class at UNM.
4 stars 1 forks source link

CSRF protection mechanisms #101

Closed franklindyer closed 3 months ago

franklindyer commented 4 months ago

The site needs some defense mechanisms against CSRF. These include:

franklindyer commented 4 months ago

Update: I've decided not to use Referer-based validation at all, due to the possibility of excluding legitimate users whose Referer headers are suppressed for some reason.

franklindyer commented 4 months ago

Update: though including a strict CSP is probably not a bad idea overall, I don't think it is actually necessary for remediating this particular issue.