Skip to content
Access control Disclosed report Beginner

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.

ranjit_p Follow

Originally disclosed on HackerOne

  • 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

  1. goto https://localhost:8080/blog/comments .

  2. select any commnet which is already aproved.

3.Unaprove it by clicking "Hide Comment".

  1. 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.

The original report as published on HackerOne, by ranjit_p. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Go to the blog comments page.
  2. Select an approved comment.
  3. Hide the comment by clicking 'Hide Comment'.
  4. 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.

More by ranjit_p

View all

6 more disclosed reports, best first.

More from Paragon Initiative Enterprises

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.