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: Session hijacking - OAuth Tutorial
From the course: Unboxing AI: Build a Remote MCP Server from Zero to Deployed with OAuth
MCP security risk: Session hijacking
- We also have session hijacking. That's when someone literally sees an ongoing session between an authorized MCP server and some other, some external service, and take over that entire session. This can happen if the MCP server is built to do it. So someone can build a malicious MCP server that hands over the session to some third party. So, normally, when you're working with it and you're logged in, everything is fine. But then someone may go in and be like, "No, I'm going to take over the session." And then suddenly, you lose control of the service and someone else is acting on your behalf within the service. This is something that can happen because the MCP server is working as that middle worker and because the LLM is doing the interaction with the service instead of you. If someone hijacks the session, you may not know for a long time. So there may be an entirely different thing happening out of your purvey while your LLM is not interacting with the service. So this, again, is a…
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)
-
-