Skip to content
Access control Disclosed report Intermediate

Privilege Persistence via Cloned Agent

A member could clone an admin-managed agent by changing the agent's sid to match the admin's agent, allowing continued use even after the admin disabled it. This breaks the admin's resource management mechanism.

yoyomiski Follow

Originally disclosed on HackerOne

  • Disclosed after 3 days

##Summary: Hi, I found a new problem. It allows a member to create an agent based on the sid of an agent that the admin manages. Specifically, in this issue, I describe gemini-pro. This is similar to chatbots like o3-mini, gpt-4, etc.

##Scenario: Suppose the admin manages agents through the dashboard. The admin allows a member to use the agent gemini-pro for 10 minutes (just as an example). However, by changing the sid, the member can clone gemini-pro. At this point, even if the admin disables gemini-pro, the member still has a cloned version of gemini-pro.

##Steps to reproduce:

  1. Access the admin account █████████ and change the agent gemini-pro from disabled to enabled.
image.png
image.png From the original on HackerOne

change

image.png
image.png From the original on HackerOne
  1. Now access the member account ████████ and create a new agent. The image below shows that I have created a new agent.
image.png
image.png From the original on HackerOne
image.png
image.png
  1. Edit this new agent, and change the sid to the sid of gemini-pro, which is: gemini-pro.

PATCH /api/w/BSsJ1zPUYE/assistant/agent_configurations/JpY5xizXRo

image.png
image.png From the original on HackerOne

PATCH /api/w/BSsJ1zPUYE/assistant/agent_configurations/gemini-pro

image.png
image.png From the original on HackerOne
  1. Disable gemini-pro on admin
image.png
image.png From the original on HackerOne
  1. Now, we have successfully cloned gemini-pro. Although the admin disables gemini-pro, we can still use this cloned agent to call gemini-pro.
image.png
image.png From the original on HackerOne
image.png
image.png

Note: Now i cant even delete this agent on member account ::v

Impact

  • Admin thinks he has disabled an agent (eg gemini-pro), but members can still continue using it via clone by editing the sid. This completely breaks the admin's resource management mechanism.

API: PATCH /api/w/{w_id}/assistant/agent_configurations/{agent-id}

HTTP header:

PATCH /api/w/BSsJ1zPUYE/assistant/agent_configurations/{agent-id} HTTP/2
Host: eu.dust.tt
Cookie: ..
Content-Length: 459
Sec-Ch-Ua-Platform: "Windows"
Accept-Language: en-US,en;q=0.9
Sec-Ch-Ua: "Chromium";v="135", "Not-A.Brand";v="8"
Content-Type: application/json
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Accept: */*
Origin: https://eu.dust.tt
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://eu.dust.tt/w/BSsJ1zPUYE/builder/assistants/JpY5xizXRo?flow=workspace_assistants
Accept-Encoding: gzip, deflate, br
Priority: u=1, i

{"assistant":{"name":"gemini-pro-clone","pictureUrl":"https://dust.tt/static/emojis/bg-blue-300/brain/1f9e0","description":"An assistant designed to provide clear, concise, and factual responses efficiently.","instructions":"test-gemini-pro","status":"active","scope":"private","actions":[],"model":{"modelId":"claude-3-5-sonnet-20241022","providerId":"anthropic","temperature":0.7},"maxStepsPerRun":8,"visualizationEnabled":true,"templateId":null,"tags":[]}}

The original report as published on HackerOne, by yoyomiski. 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 API allowed a member to change the agent's sid to an admin-controlled agent's sid without proper authorization checks.

Impact

The admin's disable action is bypassed, allowing members to continue using a disabled agent, which breaks resource management.

What the attacker needed

Member account; admin enables an agent

How it was found

  1. Admin enables the gemini-pro agent.
  2. Member creates a new agent.
  3. Member edits the new agent and changes its sid to gemini-pro.
  4. Admin disables gemini-pro.
  5. Member can still use the cloned agent to call gemini-pro.

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.

An agent is a chatbot configuration. The admin can enable or disable agents for members. A member could copy the admin's agent by changing an identifier, so the admin's disable action did not stop the member from using the agent.

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.

More by yoyomiski

View all

14 more disclosed reports, 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.