Skip to content
Access control Write-up Intermediate

AI Agent Vulnerabilities: Structural Flaws and Exploiting Co-Pilo

Copilot Studio agents can be published with no authentication and a predictable demo website URL, allowing attackers to enumerate and access exposed agents. The author found real agents and extracted sensitive financial data from them.

Logon_thepage Follow

Published on medium.com

The hype is real: AI agents are the new engines of industry. But beneath this revolution lies a critical vulnerability.

Logon_thepage, on medium.com

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 platform defaults to no authentication for demo links and generates predictable URLs, so agents remain publicly reachable even when deployed elsewhere.

Impact

Attackers could access exposed agents and extract sensitive financial data such as quarterly forecasts, budgets, and vendor contracts.

What the attacker needed

Agent published with no authentication; knowledge of tenant domain; ability to guess agent name

The fix

The issue was fixed for the affected company after notification, and organisations should enforce authentication and limit data access for agents.

How it was found

  1. Obtain the tenant ID from the domain's public OpenID configuration endpoint.
  2. Derive the environment ID from the tenant ID.
  3. Guess the schema name and agent name to build the demo website URL.
  4. Send a request to the demo URL and check the JSON response for a 404, 401, or successful agent details.
  5. If the agent is unauthenticated, interact with it to query its connected knowledge base.

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.

An AI agent is a chatbot that can also perform actions like sending emails or reading files. If it is left without a password and its web address can be guessed, anyone on the internet can talk to it and ask for the information it can access.

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.

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.