Skip to content

Add CSRF token implementation for student app status update#163

Merged
wunc merged 4 commits intodevelopfrom
prevent-changing-student-app-status
Dec 19, 2024
Merged

Add CSRF token implementation for student app status update#163
wunc merged 4 commits intodevelopfrom
prevent-changing-student-app-status

Conversation

@betsyecastro
Copy link
Contributor

To address CSRF vulnerability #2641316 – Low – [profiles.utdallas.edu] CSRF at "/students/[VictimUsername]/status?status=drafted" in the HackerOne report.

Replaces the <a> tag in the student form to update the student application status for a <form> element that contains the CSRF token used by the VerifyCsrfToken middleware. Manual testing confirms that requests with an invalid or missing CSRF token return a 419 HTTP response.

@betsyecastro betsyecastro added 🐛 bug Something isn't working 🔒 security Security-related labels Aug 23, 2024
@betsyecastro betsyecastro requested a review from wunc August 23, 2024 19:19
@betsyecastro betsyecastro self-assigned this Aug 23, 2024
@wunc wunc merged commit a569a68 into develop Dec 19, 2024
1 of 2 checks passed
@wunc wunc deleted the prevent-changing-student-app-status branch December 19, 2024 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working 🔒 security Security-related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants