Instagram Unauthorized Comment Deletion
The Instagram web and mobile applications allowed deletion of comments and captions on posts belonging to other users without proper authorisation checks. An attacker could delete any comment or caption by sending crafted requests.
Meta
Published on mohankallepalli.blogspot.com
{{media:0}} |
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server did not verify that the user making the deletion request was the owner of the comment or caption.
Impact
An attacker could delete comments and captions on any Instagram post, causing data loss and disruption.
What the attacker needed
An Instagram account; knowledge of target user's post
How it was found
- Capture the request used for deleting comments.
- Capture the request that fetches comment IDs.
- Modify the request to target another user's comment or caption.
- Send the modified request to delete the content.
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 write-up has not been written yet. The Original tab links to the source.
Instagram lets you delete your own comments and captions, but it should not let you delete other people's. The researcher found that by changing some values in the request, they could delete comments and captions on any account. This is a serious access control problem.
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.