Skip to content
IDOR Disclosed report Beginner

Idor on the DELETE /comments/

The comment edit and delete endpoints accepted a comment identifier supplied by the client without checking that it belonged to the requesting user, so one user could act on another user's comments. Because the identifiers were sequential, an attacker could enumerate them to reach every comment across every thread.

bb4661ba0c0dc601b01ec343277a7 Follow

Originally disclosed on HackerOne

  • Triaged in 12 hours
  • Fixed in 15 days
  • Disclosed after 15 days

Summary by the researcher

Here in the scenario, the attacker was able to abuse comment id of another user by manipulating the request, including delete function and edit. The interesting part was that the application was throwing the comment content after executing the request on the page itself. As the comment ID's were in numbers the attacker used it with an intruder by their number range, further enumerating all the comments in every thread in the web application.

The report

Summary:

[Idor on /comments]

Steps To Reproduce:

[Make sure you have 2 different ID's to maintain 2 different session for ensurity]

  1. The request can be tamper with the ID of different (comment) both the functions of edit/delete can be used
  2. Delete gets hampered with the Captcha which is thrown but the Comment of different user can be observed in the request
  3. Assume user 1"victim" made a comment "comment X" user 2 can edit the request for editing his comment "Y" to "X" further as the attacker failed editing the comment of victim, further disabling the edit option for user 1 :| that will make user 1"victim" left with only option to delete the comment. sed very sed
  4. Even this works widely with Burp_Intruder that means it doesn't even have rate limit.

Impact

An attacker with a privilege to the user can harness the activities of any user around intentionally or target them widely.

The original report as published on HackerOne, by bb4661ba0c0dc601b01ec343277a7. 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 the server used the client-supplied comment identifier directly for edit and delete actions without verifying that the comment belonged to the authenticated user.

Impact

An attacker with a normal user account could act on other users' comments, and the sequential identifiers allowed wide enumeration, although the delete action was hampered by a captcha.

What the attacker needed

A normal user account; a second account to compare sessions; sequential comment identifiers

How it was found

  1. Set up two separate sessions with two different accounts.
  2. Capture the request used to edit or delete a comment and change the comment identifier to one belonging to the other user.
  3. Observe that the other user's comment content is returned on the page after the request.
  4. Note that the delete action is blocked by a captcha, but the other user's comment is still visible in the request.
  5. Try editing the victim's comment; when that fails, the edit option is disabled for the victim, leaving only delete.
  6. Run the identifier range through an intruder tool to enumerate comments across threads, with no rate limit encountered.

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.

Every comment on the site has a number, and the site trusted whatever number the browser sent when you asked to edit or delete a comment. It never checked that the comment actually belonged to you, so changing the number let you reach other people's comments. Because the numbers simply count up, someone could try them one after another and find every comment on the site.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by bb4661ba0c0dc601b01ec343277a7

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.