Skip to content
Access control Disclosed report Beginner

UI flaw allows unauthorized users to add documents to restricted folders

A member-level user could add documents to a folder they were not permitted to access because the add button appeared disabled but still worked. This bypassed intended permissions and allowed unauthorised insertion of documents into restricted folders.

kbksi Follow

Originally disclosed on HackerOne

  • Disclosed after 3 days

hey team A UI issue allows a user to upload or add documents to a folder they should not have access to. This bypasses intended permissions and could lead to unauthorized access or data integrity issues.

steps to reproduce: 1- login in account a which is the admin, add any document to the folder 2-login as account b which is member and go to the same folder then click on add multiple documents and choose any document 3-the document will be uploaded successfully, the button of adding looks disabled but it works fine, the member is not supposed to do this function

█████████

Impact

This issue constitutes an Insecure Direct Object Reference (IDOR) vulnerability. Although the UI is intended to restrict access, users can manipulate the client-side behavior to perform unauthorized actions — in this case, uploading documents to folders they shouldn't have access to. This breaks access control at the object level and could allow:

Unauthorized insertion of documents into restricted folders

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

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Dust is a product hosted at https://dust.tt. The report concerns folders that hold documents and the permissions around who may add documents to them. In normal use an administrator controls a folder, and a member account is not supposed to be able to add documents to a folder it has no access to. The interface is meant to enforce that restriction.

The researcher found that the restriction is only presentational: the button for adding documents appears disabled for the member, but the underlying action still works. The report classifies this as an Insecure Direct Object Reference (IDOR) and as a break of access control at the object level.

Setup

Two accounts are needed:

  1. Account A, which is the admin.
  2. Account B, which is a member.

No tools, versions or special configuration are described. The precondition is that a folder exists which the member should not be able to write to.

Finding it

The researcher noticed that a member could add documents to a folder they should not have access to. The visible control for adding multiple documents looks disabled for that member, yet the action completes. The button looks disabled, yet the action completes, which is what made the behaviour look wrong.

Exploitation

Step 1: create the content as the admin

Log in to account A, the admin, and add any document to the folder. This establishes the folder and its contents under the privileged account.

Step 2: reach the folder as the member

Log in as account B, the member, go to the same folder, click on add multiple documents and choose any document. The add button looks disabled, but it still responds.

Step 3: observe the upload

The document is uploaded successfully. The member, who is not supposed to perform this function, has written into the restricted folder.

No HTTP requests, responses, payloads or commands are included in the report, so there is nothing further to reproduce at the protocol level from the text alone.

Root cause

The report attributes the issue to the UI being the only place where the restriction lives. The client-side behaviour is meant to restrict access, but a user can manipulate it to perform actions they should not be allowed to perform. In other words, the disabled state of the add button is a client-side signal, and the restriction lives only in the UI. The report does not describe the server-side implementation, so the exact mechanism is not stated.

Impact

The report frames the issue as an IDOR that breaks access control at the object level. Under the conditions described, a member can insert documents into folders they should not have access to. The report lists two consequences:

  • Unauthorised insertion of documents into restricted folders.
  • Potential unauthorised access or data integrity issues arising from that insertion.

Fix

The report does not state what was changed. The fix that follows from the finding is to enforce the permission on the server: the upload or add-document action must verify that the requesting user is allowed to write to the target folder, independently of whether the client rendered the button as enabled or disabled. The disabled state in the UI can stay as a usability hint, but it cannot be the control.

Variants to test

  1. Other write actions on the same object type: try renaming, moving, deleting or sharing a document in a folder the account cannot write to. A positive result is the action succeeding despite the control being shown as unavailable.
  2. Bulk versus single operations: the report uses add multiple documents. Try the single-document add path as well. A positive result is the same acceptance by the server on the path that the UI does not disable.
  3. Direct object references: change the folder or document identifier in the request to one belonging to another account. A positive result is a successful write or read against an object the account does not own.
  4. Role boundaries: repeat with roles below member, if the product defines them, and with accounts that have been removed from a folder. A positive result is any write that the role matrix says should be refused.

Hunting notes

This kind of bug tends to hide wherever a permission is expressed only as a disabled or hidden control in the client, especially around bulk actions and secondary paths that are easy to overlook when the primary button is greyed out. During recon, look for features where the UI distinguishes roles visually: if the only difference between an admin view and a member view is styling, the server may not be checking at all.

The researcher showed impact with a short, reproducible sequence: two accounts and a successful upload by the account that should have been blocked. That demonstration of a concrete unauthorised write, rather than a theoretical one, is what the report rests on.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

What happened, in plain words

Dust is a web product at https://dust.tt where people keep documents inside folders. Some folders are meant to be off limits: an administrator controls them, and an ordinary member account should not be able to put documents into them. The interface is supposed to enforce that rule.

The researcher found that the rule only exists on the surface. When a member opens a folder they should not write to, the button for adding documents looks greyed out, as if it cannot be clicked. But the action behind the button still works. The member can add documents to the restricted folder anyway.

That gap, between what the screen shows and what the server actually accepts, is the whole bug. The report calls it an Insecure Direct Object Reference (IDOR) and describes it as a break of access control at the object level. We will unpack both terms below.

The pieces you need to know first

Before the steps make sense, here are a few everyday ideas.

  • A web application: a program that runs on a company's server and that you use through your browser. Dust is one. Your browser draws the screens; the server holds the data and decides what to do with it.
  • A folder and a document: a folder is a container, like a drawer in a filing cabinet. A document is one item inside it. In Dust, folders hold documents, and the report is about who may add a document to a folder.
  • An account and a role: each person logs in with their own account. Accounts can have roles, such as administrator (admin) or member. A role is a label that says what that account is allowed to do. An admin can manage a folder; a member is more limited.
  • Permissions and access control: permissions are the rules about who may do what to which thing. Access control is the system that enforces those rules. Think of a building where your badge opens some doors and not others: the badge is your account, the doors are the folders, and the lock on each door is the access control.
  • The client and the server: the client is the part running in your browser, the screens and buttons. The server is the part running at the company, which stores data and carries out actions. A crucial point: the client can be changed or bypassed by the person using it, so the server must always check for itself.
  • The UI (user interface): everything you see and click, buttons, menus, forms. A button can be drawn as disabled (greyed out, not clickable) purely as a visual hint. That hint is not a lock. Only the server can refuse an action.
  • An API: the way the browser talks to the server behind the scenes. When you click a button, the browser sends a request to the server, the server does the work and sends back a response. You rarely see this happen; it is the plumbing under the page.
  • IDOR (Insecure Direct Object Reference): a bug where the server lets you act on a specific thing (an object, such as a folder or a document) just because you asked for it by its identifier, without checking that the thing belongs to you or that you are allowed to touch it. The comparison: a hotel clerk hands over the keys to room 412 to anyone who says the number 412, without checking that the person is the guest in that room.
  • Object-level access control: checking permission for each individual object (this folder, this document), not just for the feature in general. You might be allowed to use the "add document" feature somewhere, but not on this particular folder.
  • Client-side versus server-side checks: a client-side check happens in your browser and can be removed or worked around. A server-side check happens on the company's machine, where the user has no control. A restriction that lives only on the client side is not a restriction at all.

The setup

The researcher needed two accounts:

  1. Account A, which is the admin.
  2. Account B, which is a member.

No special tools, software versions or configuration are described. The only precondition is that a folder exists which the member should not be able to write to.

Finding it

The researcher noticed that a member could add documents to a folder they should not have access to. The visible control for adding multiple documents looks disabled for that member, yet the action completes. That mismatch is the clue: the interface signals a restriction that does not stop the action. When the screen says "you may not" but the server says "fine, done", the screen was never the thing protecting the folder.

Reproducing it, step by step

Step 1: create the content as the admin

Log in to account A, the admin, and add any document to the folder. This establishes the folder and its contents under the privileged account, so there is a real folder with real content for the next step. Without this, there would be nothing to try to write into.

Step 2: reach the folder as the member

Log in as account B, the member, go to the same folder, click on add multiple documents and choose any document. The add button looks disabled, but it still responds. The point of this step is to confirm the visual restriction is there (the button is greyed out) and then to see whether the action behind it is actually blocked.

Step 3: observe the upload

The document is uploaded successfully. The member, who is not supposed to perform this function, has written into the restricted folder. That successful upload is the proof: the restriction existed only in the appearance of the button.

The report includes no HTTP requests, responses, payloads or commands, so there is nothing further to reproduce at the level of network traffic from the text alone. What we have is the sequence of clicks and the observed result.

Why this happens (root cause)

The report attributes the issue to the restriction living only in the UI. The client-side behaviour is meant to restrict access, but a user can manipulate it to perform actions they should not be allowed to perform. In plain terms: the disabled state of the add button is a hint drawn by the browser, and the restriction lives only in the UI.

The report does not describe the server-side implementation, so the exact mechanism is not spelled out. What follows from the finding is that the restriction is not enforced where the write is accepted.

Impact

The report frames the issue as an IDOR that breaks access control at the object level. Under the conditions described, a member can insert documents into folders they should not have access to. The report lists two consequences:

  • Unauthorised insertion of documents into restricted folders.
  • Potential unauthorised access or data integrity issues arising from that insertion.

Data integrity means the contents of the folder can no longer be trusted to be only what the people in charge put there.

The fix

The report does not state what was changed. The fix that follows from the finding is to enforce the permission on the server: the upload or add-document action must verify that the requesting user is allowed to write to the target folder, independently of whether the client rendered the button as enabled or disabled. The disabled state in the UI can stay as a usability hint, but it cannot be the control. The comparison again: a door that is only painted to look locked is not locked; the lock has to be on the door itself, not on the sign.

Variants worth testing

Once you understand the pattern (a permission shown only in the interface), you can look for the same mistake elsewhere. These are the directions the technical write-up suggests:

  1. Other write actions on the same object type: try renaming, moving, deleting or sharing a document in a folder the account cannot write to. A positive result is the action succeeding despite the control being shown as unavailable.
  2. Bulk versus single operations: the report uses add multiple documents. Try the single-document add path as well. A positive result is the same acceptance by the server on the path that the UI does not disable.
  3. Direct object references: change the folder or document identifier in the request to one belonging to another account. A positive result is a successful write or read against an object the account does not own. This is the IDOR idea in its purest form: swapping the number and seeing whether the server checks whose number it is.
  4. Role boundaries: repeat with roles below member, if the product defines them, and with accounts that have been removed from a folder. A positive result is any write that the role matrix says should be refused.

Notes for anyone hunting this kind of bug

This kind of bug tends to hide wherever a permission is expressed only as a disabled or hidden control in the client, especially around bulk actions and secondary paths that are easy to overlook when the primary button is greyed out. During recon (the early phase of looking around a target to see what it does and where its features are), look for features where the UI distinguishes roles visually: if the only difference between an admin view and a member view is styling, the server may not be checking at all.

The researcher showed impact with a short, reproducible sequence: two accounts and a successful upload by the account that should have been blocked. That demonstration of a concrete unauthorised write, rather than a theoretical one, is what the report rests on.

Glossary

  • Access control: the system of rules and checks that decides who may do what to which resource.
  • Admin (administrator): an account with management rights over a folder or the product.
  • API: the channel through which the browser and the server exchange requests and responses behind the page.
  • Authorisation check: a check on the server that confirms the requesting account is allowed to perform the action on the specific object.
  • Bulk action: an action applied to several items at once, such as adding multiple documents.
  • Client: the part of the application running in your browser, the screens and controls you see.
  • Client-side check: a restriction enforced in the browser, which the user can bypass.
  • Data integrity: the property that data is only what it is supposed to be, not altered or added to by people who should not have that power.
  • Disabled control: a button or field drawn as unavailable (often greyed out) as a visual hint; it is not a security control by itself.
  • Document: a single item stored inside a folder in Dust.
  • Folder: a container that holds documents and has permissions about who may read or write inside it.
  • IDOR (Insecure Direct Object Reference): a bug where the server acts on an object named by the user without checking that the user is allowed to touch that object.
  • Member: an ordinary account with fewer rights than an admin.
  • Object: a specific thing in the application, such as one folder or one document, usually identified by an identifier.
  • Object-level access control: permission checking done per individual object rather than per feature.
  • Permission: a rule stating that a given account may perform a given action on a given thing.
  • Recon: the exploratory phase of examining a target to understand its features and where weaknesses might be.
  • Role: a label on an account (admin, member) that determines what it is allowed to do.
  • Root cause: the underlying reason a bug exists, as opposed to its visible symptom.
  • Server: the machine at the company that stores data and carries out actions; it is where real checks must happen.
  • Server-side check: a restriction enforced on the server, which the user cannot bypass from the browser.
  • UI (user interface): everything you see and interact with on screen, buttons, menus, forms.
  • Upload: sending a file or document from your computer to the server so it is stored there.
  • Vulnerability: a weakness in a product that allows someone to do something they should not be able to do.

More by kbksi

View all

1 more disclosed report, best first.

More from Dust

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.