Improper access control lead To delete anyone comment
The server does not verify that the user deleting a comment is the comment's owner. An attacker can delete any other user's comment.
- Triaged in 1 hour
- Fixed in 5 hours
- Paid in 5 hours
- Disclosed after 14 days
SUMMURY
Here server dont check the owner of any comment. During Comment deletion it does not check whether the comment is created by user or not. so i can delete a comment of others user.
STEP TO REPRODUCE
-
select any commnet which is already aproved.
3.Unaprove it by clicking "Hide Comment".
- Now delete that commnet and see comment is deleted which is not created by himself.
FIX
implement proper access control mechanism so that when user try to delete a comment first check the comment is belongs to that user or not.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely missing ownership check on the comment deletion endpoint.
Impact
An attacker could delete other users' comments.
What the attacker needed
A user account; access to the blog comments page
The fix
The server should check that the comment belongs to the user before allowing deletion.
How it was found
- Go to the blog comments page.
- Select an approved comment.
- Hide the comment by clicking 'Hide Comment'.
- Delete the comment and observe it is removed even though it belongs to another user.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A website should only let you delete your own comments. Here, the server forgot to check who owns the comment, so anyone can delete anyone else's comment.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.