Cross-Site Request Forgery (CSRF) in hdinnovations/unit3d-community-edition
Reported on
Nov 15th 2021
Description
More CSRFs, related to warnings feature this time
1: /warnings/{id}/deactivate
2: /warnings/{username}/mass-deactivate
3: /warnings/{id}/restore
Proof of Concept
<a href="http://[UNITED-URL]/warnings/{id}/restore">CLICK ME!</a>
Impact
This vulnerability is capable of tricking users to deactivate / restore warnings.
Occurrences
web.php L285L286
api deactivate / mass-deactivate
warninglog.blade.php L100L103
deactivate blade
warninglog.blade.php L186L189
restore blade
warninglog.blade.php L35L41
mass-deactivate blade (not to be confused with mass-delete directly above)
web.php L289
api restore