Lab: MCP server authentication fails open
This lab's shop exposes a Model Context Protocol (MCP) server at /mcp. The server rejects requests that don't include a token. However, its handling of tokens that it doesn't recognize is flawed.
To solve the lab, use the MCP server to delete the user carlos.
You can log in to your own account using the following credentials: wiener:peter
Hint
Compare how the server responds to no token, to your own API key, and to a token that isn't a valid API key. The server's initialize instructions describe which kinds of token it accepts.
Required knowledge
To solve this lab, you'll need to know:
- How to call tools on an MCP server.
- How MCP servers authenticate requests with bearer tokens.
For more information, see our MCP server vulnerabilities Academy topic.
Solution
The solution for this lab will be published shortly. Check back soon.