IDOR Causing Deletion of any account
An IDOR flaw in the community platform let any logged-in user close another user's account by supplying the victim's user id. The attacker could wipe the victim's posts, messages, badges, friends and other data, which could not be recovered even if the victim rejoined.
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 4 months
Summary by the program
The researcher demonstrated how to close other users account, using a IDOR in community.ubnt.com he was able to delete all data in others account using the user id number of the victim.
Summary by the researcher
IDOR in Community.ubnt.com :500$
Created two user:-- Attacker with username:--vibhuti123_i Victim:-- John_victim
Vulnerability—Critical -IDOR causing Deletion of community account.For this close account option should be enable in community platform. This is a critical IDOR causing any user’s community account deleted by any other user.The simple step is in Video POC Link. Victim can rejoin again but he will not get back his posts,messages,badges,kudo points,Friends,achievement,Reply,images,followers,following and manything.He may rejoin with same username but he will never get anything (posts,messages,badges,kudo points,Friends,Reply,images,achievements,followers,following and manything) back again. Let understand with below example:-- suppose victim has username john_victim with 9posts,12 reply,2 messages,10 friends,8 badges ,2 posts,10 image in album.If attacker deleted his account then Everything is deleted all posts,badges,friends,reply,images .But again victim can rejoin but he will not get previously achieved or created posts,reply,badges,followers,friends,image and all.He has to start from scratch.
POC:--Video https://youtu.be/nLAtXUhw65k
Important point:-- In video after deletion of victim account due to presence of browser cache(mistakenly told cache server in video but it is browser cache) it showed all that stuff but when you clear the cache or goes to profile of newly rejoined you will find everything got deleted that is friends,kudos,replies,images,posts,article and many.
Context
Ubiquiti runs a community platform at community.ubnt.com, where users register an account, post content, reply to threads, send messages, collect badges and kudos points, upload images to albums, and follow other members. The platform exposes an option to close your own account. Closing an account is destructive: the profile and everything attached to it are removed.
The report describes an insecure direct object reference (IDOR) in that account-closing feature. The report describes an insecure direct object reference (IDOR) in that account-closing feature: one authenticated user can close another user's account by using the victim's user id.
Setup
The researcher created two accounts on the community platform:
- Attacker account with username
vibhuti123_i. - Victim account with username
John_victim.
The precondition for the attack is that the close-account option is enabled on the community platform. The researcher states this explicitly: for the attack to work, the close account option should be enabled in the community platform.
The victim account was populated so that the loss would be visible: the example in the report describes a victim with 9 posts, 12 replies, 2 messages, 10 friends, 8 badges, 2 posts and 10 images in an album. The researcher also recorded a video proof of concept, linked in the report as https://youtu.be/nLAtXUhw65k.
Finding it
The researcher found that the account-closing action could be made to apply to another user's account by using the victim's user id number. Any logged-in user can use the victim's user id number to have the victim's account closed.
The researcher classifies this as critical: an IDOR that causes deletion of any community account.
Exploitation
Step 1: Prepare the two accounts
Create the attacker account vibhuti123_i and the victim account John_victim, and populate the victim with posts, replies, messages, friends, badges and album images so the deletion is observable.
Step 2: Trigger the close-account action as the attacker
Log in as vibhuti123_i and use the victim's user id number to close the victim's account, as shown in the video proof of concept.
Step 3: Observe the result
The victim's account is closed and all of its content is deleted: posts, replies, messages, badges, kudos points, friends, achievements, images, followers and following. The victim can register again with the same username, but none of the previous content or achievements come back. The researcher's example makes the scale concrete: a victim with 9 posts, 12 replies, 2 messages, 10 friends, 8 badges, 2 posts and 10 images in an album loses all of it and has to start from scratch.
Step 4: Account for the browser cache
The video shows the victim's content still visible after the deletion. The researcher explains this as browser cache: in the video he mistakenly calls it a cache server, but it is the browser cache. Once the cache is cleared, or the profile of the newly rejoined account is viewed, everything is gone: friends, kudos, replies, images, posts, articles and more.
The embedded video is the proof of concept linked in the report (https://youtu.be/nLAtXUhw65k), showing the deletion of the victim account.
Root cause
The report describes an IDOR in the close-account feature that lets one user close another user's account using the victim's user id number. Authorisation is effectively delegated to the caller: whoever sends the request decides which account is closed. The report does not include the request itself, so the exact parameter name and endpoint are not shown; the mechanism described is a direct object reference to the user id in the close-account request.
Impact
Any authenticated community user can close any other user's community account, provided the close-account option is enabled on the platform. The victim can rejoin with the same username, but the deletion is permanent for everything the account held: posts, replies, messages, badges, kudos points, friends, achievements, images, followers and following. The researcher notes that the victim will never get any of it back and has to start from scratch. The report does not describe any restriction on which accounts can be targeted, such as administrator or staff accounts.
Fix
The report does not state what was changed.
Variants to test
- Close-account and delete-account flows on other community platforms: substitute another user's id and check whether the victim's profile disappears. A positive result is the victim account being closed while you are logged in as yourself.
- Other destructive self-service actions (email change, password reset, unsubscribe, leave group, transfer ownership): swap in a victim's id and see whether the action applies to the victim. A positive result is a state change on the victim's account that you did not own.
- Sequential numeric identifiers in profile and settings URLs: increment and decrement the id and look for actions that succeed against other users' objects. A positive result is any read or write that returns or modifies another user's data.
- Rejoin behaviour after deletion: recreate the account with the same username and check whether old content, badges or followers return. A positive result confirms the deletion was permanent rather than a soft disable.
Hunting notes
This kind of bug hides in self-service account management features: close account, delete account, deactivate, and similar destructive actions, especially where the UI sends an explicit user id. During recon, watch for numeric ids in profile URLs, settings forms and API calls, and for endpoints that accept an id parameter for an action that logically only applies to the current user. The signal is a request whose body or query contains your own id while you are authenticated: if changing that value to another account's id is accepted, the authorisation check is missing.
The researcher demonstrated impact by creating a populated victim account and showing, in a video, that the account and all of its content were deleted, with the browser cache explained so the apparent survival of content was not mistaken for a failed attack.
What happened, in plain words
Ubiquiti runs a community website at community.ubnt.com. People sign up there, write posts, reply to other people's threads, send messages, collect badges and kudos points, upload pictures to albums, and follow each other. It is a normal online forum, just for Ubiquiti's products.
The site has a button that lets you close your own account. Closing an account is a serious action: your profile and everything attached to it are removed.
The researcher found that the close-account action could be made to apply to another user's account by using that user's user id number. So if you are logged in as yourself and you change that number to somebody else's user id, the server closes their account instead of yours.
This kind of mistake has a name: an insecure direct object reference, or IDOR. Think of a cloakroom where you hand in a ticket with a number on it and get back whatever coat has that number. If the attendant never checks that the ticket is yours, you can write a different number on a scrap of paper and walk away with a stranger's coat. Here the "number" is a user id and the "coat" is somebody's whole community account.
The researcher proved it by creating two accounts and closing the victim's account while logged in as the attacker. The report calls the impact critical: any logged-in user could close any other user's community account.
The setup
The researcher created two accounts on the community platform:
- An attacker account with the username
vibhuti123_i. - A victim account with the username
John_victim.
Why two accounts? Because to show that you can act on someone else's account, you need a someone else. If you only had one account, you could not tell the difference between "the site closed my account because I asked" and "the site closed an account because I named it".
There is one precondition, and the researcher states it explicitly: the close-account option has to be enabled on the community platform. If that feature is switched off, there is no button and no request to tamper with, so the attack has nothing to act on.
The victim account was filled with content so that the loss would be visible. The report's example describes a victim with 9 posts, 12 replies, 2 messages, 10 friends, 8 badges, 2 posts and 10 images in an album. That list matters: it is the difference between "an empty account disappeared" (hard to notice, easy to dismiss) and "a real, active member's history was wiped".
The researcher also recorded a video proof of concept, linked in the report as https://youtu.be/nLAtXUhw65k.
Finding it
The researcher found that the account-closing action could be made to apply to another user's account by using that user's user id number.
A quick word on what a request is. When you click a button on a website, your browser sends a message to the server saying what you want. That message can carry extra pieces of information, for example the id of the thing you are acting on. A user id is just the internal number the site gives each account, the way a library gives each member a membership number.
Nothing in that flow tied the id to the logged-in session. A session is how a website remembers that you are you between page loads: after you log in, the server gives your browser a small piece of data (often a cookie) and the browser sends it back with every request. The server uses it to know who is asking. The problem is that one user's request could close another user's account.
Any logged-in user can use the victim's user id number to have the victim's account closed.
The researcher classifies the finding as critical: an IDOR that causes deletion of any community account.
Exploitation
Step 1: Prepare the two accounts
Create the attacker account vibhuti123_i and the victim account John_victim, and populate the victim with posts, replies, messages, friends, badges and album images so the deletion is observable.
This step is preparation, not attack. It sets up a realistic target and gives you something to look at afterwards, so that when the account is closed you can point at the empty space and say: that used to be there.
Step 2: Trigger the close-account action as the attacker
Log in as vibhuti123_i and use the victim's user id number to close the victim's account, as shown in the video proof of concept.
Why do it while logged in as the attacker? Because that is the whole point. You are not breaking into the victim's account; you are using your own valid, ordinary login and simply naming a different account in the request.
The report does not include the request itself, so the exact parameter name and the exact endpoint are not shown. What is described is a direct reference to the user id inside the close-account request.
Step 3: Observe the result
The victim's account is closed and all of its content is deleted: posts, replies, messages, badges, kudos points, friends, achievements, images, followers and following.
The victim can register again with the same username, but none of the previous content or achievements come back. The researcher's example makes the scale concrete: a victim with 9 posts, 12 replies, 2 messages, 10 friends, 8 badges, 2 posts and 10 images in an album loses all of it and has to start from scratch.
This is why the impact is high. A password reset is annoying but recoverable. A deletion like this is not: the username is available again, but the history behind it is gone.
Step 4: Account for the browser cache
The video shows the victim's content still visible after the deletion. That looks, at first glance, like the attack failed. The researcher explains it as browser cache: in the video he mistakenly calls it a cache server, but it is the browser cache.
What is a browser cache? To make pages load faster, your browser keeps a copy of things it has already downloaded, such as pages and images. When you go back to a page, it may show you the saved copy instead of asking the server again. So after the account was deleted, the browser was still displaying the old saved copy of the profile, complete with content that no longer existed on the server.
Once the cache is cleared, or the profile of the newly rejoined account is viewed, everything is gone: friends, kudos, replies, images, posts, articles and more. This detail matters because a misleading cached view could make a real, destructive bug look like a non-issue.
The embedded video is the proof of concept linked in the report (https://youtu.be/nLAtXUhw65k), showing the deletion of the victim account.
Root cause
The report describes an IDOR in the close-account feature that lets one user close another user's account using the victim's user id number.
An endpoint is simply the address on the server that handles a particular action, the way a specific counter in a building handles passport renewals. The client is your browser, the thing sending the request. "Supplied by the client" means the value came from your side, and the server took it at face value.
The report does not include the request itself, so the exact parameter name and endpoint are not shown; the mechanism described is a direct object reference to the user id in the close-account request.
Impact
Any authenticated community user can close any other user's community account, provided the close-account option is enabled on the platform.
Authenticated just means logged in with a valid account. So the barrier to entry is low: you do not need special tools or a privileged role, only an ordinary account on the forum.
The victim can rejoin with the same username, but the deletion is permanent for everything the account held: posts, replies, messages, badges, kudos points, friends, achievements, images, followers and following. The researcher notes that the victim will never get any of it back and has to start from scratch.
The report does not describe any restriction on which accounts can be targeted, such as administrator or staff accounts.
Fix
The report does not state what was changed.
Variants to test
These are the same idea applied elsewhere. Each one is worth trying because the same missing check tends to appear in more than one place.
- Close-account and delete-account flows on other community platforms: substitute another user's id and check whether the victim's profile disappears. A positive result is the victim account being closed while you are logged in as yourself.
- Other destructive self-service actions (email change, password reset, unsubscribe, leave group, transfer ownership): swap in a victim's id and see whether the action applies to the victim. A positive result is a state change on the victim's account that you did not own.
- Sequential numeric identifiers in profile and settings URLs: increment and decrement the id and look for actions that succeed against other users' objects. A positive result is any read or write that returns or modifies another user's data.
- Rejoin behaviour after deletion: recreate the account with the same username and check whether old content, badges or followers return. A positive result confirms the deletion was permanent rather than a soft disable.
Hunting notes
This kind of bug hides in self-service account management features: close account, delete account, deactivate, and similar destructive actions, especially where the UI sends an explicit user id.
Recon means looking around a site before attacking anything: reading its pages, watching what its requests contain, and noting where numbers appear. During recon, watch for numeric ids in profile URLs, settings forms and API calls, and for endpoints that accept an id parameter for an action that logically only applies to the current user.
An API is the part of a site that your browser talks to behind the scenes, exchanging data rather than whole pages. When you click a button, the page often sends a small request to an API endpoint, and that request is where an id parameter can be swapped.
The signal is a request whose body or query contains your own id while you are authenticated: if changing that value to another account's id is accepted, the authorisation check is missing. The body is the part of the request carrying the data, and the query is the part after the ? in a URL. Either can hold the id.
The researcher demonstrated impact by creating a populated victim account and showing, in a video, that the account and all of its content were deleted, with the browser cache explained so the apparent survival of content was not mistaken for a failed attack.
Glossary
- API: the interface a website's pages use to exchange data with its server, as opposed to loading whole pages.
- Authenticated: logged in with a valid account, so the server knows who you are.
- Authorisation: the check that a logged-in user is allowed to perform a particular action on a particular thing.
- Body: the part of a request that carries data, such as form fields or an id.
- Browser cache: copies of pages and images your browser keeps locally to load them faster, which can show old content after the server's data has changed.
- Client: the program making the request, normally your browser.
- Cookie: a small piece of data a site stores in your browser and your browser sends back with each request, often used to keep you logged in.
- Endpoint: the specific address on a server that handles a particular action.
- IDOR (insecure direct object reference): a bug where a request names an object (such as a user id) and the server acts on it without checking that the requester is allowed to touch that object.
- Kudos points: points awarded on the community platform, as described in the report.
- Query: the part of a URL after the
?, carrying extra values to the server. - Recon: exploring a site and its requests to understand how it works before testing for bugs.
- Request: the message your browser sends to a server asking it to do something.
- Sequential: numbered in order, 1, 2, 3 and so on, which makes values easy to guess.
- Session: the server's record of your logged-in state, tied to your browser through a cookie or similar value.
- User id: the internal number a site assigns to each account.