From the course: Unboxing AI: Build a Remote MCP Server from Zero to Deployed with OAuth
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
MCP security risk: Confused deputy - OAuth Tutorial
From the course: Unboxing AI: Build a Remote MCP Server from Zero to Deployed with OAuth
MCP security risk: Confused deputy
- That gets us to the confused deputy problem. This is actually a name of a specific type of security incident that can happen when you have these OAuth loop things happening. The confused deputy simplified is during the OAuth back and forth loop where the user is authorized, a malicious actor can inject themselves by intercepting different URLs and sending the wrong URL to the client and then pick up the key so that instead of the client accessing the authorization server to get the token, a third party can pick up that key and then go to the authorization server and get the token and then gain access to the system as the original user. So this happens after the human being has clicked on a button or authorized themselves into the system. The worst part about this is when this happens to you, the user, it looks like something went wrong in the authorization, and you just go do the authorization again. Meanwhile, someone else may have gained access to your account to do things. And…
Contents
-
-
-
-
-
- (Locked) Why authorization and security matter1m 53s
- (Locked) The MCP authorization spec4m 23s
- (Locked) Implementing MCP authorization2m 44s
- (Locked) The MCP OAuth 2.0 flow visualized4m 22s
- (Locked) Best-practices for MCP authorization5m 8s
- (Locked) Options for MCP authorization5m 32s
- (Locked) MCP and security46s
- (Locked) MCP security risk: Vibe coding2m 26s
- (Locked) MCP security risk: Excessive permisisons3m 20s
- (Locked) MCP security risk: Agent error1m 53s
- (Locked) MCP security risk: Prompt injection2m 29s
- (Locked) MCP security risk: Confused deputy1m 42s
- (Locked) MCP security risk: Session hijacking1m 16s
- (Locked) Authorization and security are job #12m 3s
- (Locked)
-
-