You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither the WebsiteController nor the CommentManager validates the current user with the creator of the comment.
Expected Behavior
Only the creator of the comment should be able to delete or edit the comment.
Steps to Reproduce
Create a comment on the website frontend
Send post or delete request with threadId and commentId (you can find them in the html code on the frontend)
The text was updated successfully, but these errors were encountered:
marcus-gerhardy
changed the title
Edit or delete comment even if not the user is not the creator
Edit or delete comment even if the user is not the creator
Apr 3, 2024
Critical point I think is that comment bundle does not always mean there is a user / login. So this API maybe should not be available when not have a login.
Actual Behavior
It is possible to manipulate or delete existing comments / threads by simply sending post requests to the WebsiteController:
e.g. https://localhost:8000/threads/b69cc46e-9527-48b5-a98d-3a3634c41f05/comments/2
Neither the WebsiteController nor the CommentManager validates the current user with the creator of the comment.
Expected Behavior
Only the creator of the comment should be able to delete or edit the comment.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: