Skip to content
IDOR Disclosed report Intermediate

Delete/modify your own comment after limited access(IDOR)

A staff member whose access to a feature (orders or transfers) was revoked could still delete or modify their own comments in that feature by sending the request through another feature's comment endpoint. This allowed bypassing the owner's access restriction.

Vijay Kumar Follow

Originally disclosed on HackerOne

  • Triaged in 20 hours
  • Fixed in 46 hours
  • Paid in 12 days
  • Disclosed after 12 days

Hi Team,

Description : When user has access to some feature like orders , Transfer etc. where comment section is available. Suppose staff members comments in it . Now owner of the account limited access to orders , then he won't be able to access his comments and he won't be able to modify/delete his comments. But this can be bypassed and he can still modify and delete his own comments. Comment ID can be used in any other feature's comment section to delete/modify comments.

Suppose A staff member was given access to orders and products. Now he commented on the orders and after some days his access to orders was limited by owner. Now he should not be able to delete it's own comments but he can still delete these comments by delete request of transfer comment section.

Steps to reproduce :

  1. Create a shop and add a staff member(Attacker) to it and provide him all the access.

2.Now from attackers account comment on any order.Let say comment ID is "12345" 3.Now from Owner account limit the access of orders so the staff member should not be able to access the comments. 4.Now go to attackers account and go to any transfer and comment on that transfer.(Staff member can go to the transfer because he has access to products.) 5.Now you will see the modify and delete options on the transfer comment.Delete or modify the comment and intercept the request.

HTTP request will look something like this :

POST /admin/transfers/774529/timeline_comments/[Transfer_comment_ID]HTTP/1.1 Host: vijaygangani1110store.myshopify.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0 Accept: text/html, application/xhtml+xml, application/xml Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br X-Requested-With: XMLHttpRequest Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-XHR-Referer: https://vijaygangani1110store.myshopify.com/admin/transfers/774529 X-CSRF-Token: DSyGAzUBvMcMmYFiUTMbgXMbWPIK97AYA8vNiQWh5GhYEVEeNSpvPQFv5eKCYVg1aDH3G8DQP13FoCpfWvFuuQ== Referer: https://vijaygangani1110store.myshopify.com/admin/transfers/774529 Content-Length: 151 Cookie: [Cookie_values] Connection: keep-alive

utf8=%E2%9C%93&_method=delete&authenticity_token=[ouath_token]

In the above request change the comment ID of transfer to order Comment ID and the comment will be deleted. The same can be applied to modification of the comment which should not happen . This whole process work vice versa . Suppose i have limited access to transfer then i can delete the comment by orders and if i have limited access to orders then i can delete comment by transfer.

Let me know if you need any Video POC regarding this to understand the issue more closely.

Best Regards ! Vijay Kumar

The original report as published on HackerOne, by indoappsec. 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 comment modification/deletion endpoint did not verify that the user still had access to the feature the comment belonged to, only that they had access to the feature in the URL path.

What the attacker needed

A shop with staff accounts; Staff member had access to orders or transfers; Owner limits staff access to one feature; Staff member has access to the other feature

The fix

The comment endpoints should verify access to the feature the comment belongs to, not just the request path.

How it was found

  1. Create a shop and add a staff member with all access.
  2. From the staff account, comment on an order and note the comment ID.
  3. From the owner account, limit the staff member's access to orders.
  4. From the staff account, go to a transfer and add a comment.
  5. Intercept the delete or modify request for the transfer comment.
  6. Replace the transfer comment ID with the order comment ID and send the request; the order comment is deleted or modified.

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 staff member whose order access was removed could still delete or edit their old order comments by sending the request through the transfer comment page.

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 Vijay Kumar

View all

15 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

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.