Test Custom Servers with Proxy Tools

OtherDiscovery

Written with a model's help from “Testing MCP Servers with Burp Suite” by krisinclude on Include Security blog. Read the writeup before relying on it.

When examining a custom server with a proxy tool, start by setting up a connection using a method like discover or initialize. Next, go through the server's main features, such as prompts, resources, and tools, and make requests for each one. You can use a script to create properly formatted requests for any server of this type, filling in test data for any arguments or templates. Then, send these requests to a tool like the Repeater for more testing. Look for responses with a content type of application/json or text/event-stream, and check for possible issues like insecure deserialization or command injection. Some proxy tools may not work well with servers that use certain transport methods, so you may need to test manually. Check the responses from the server at target.com for any signs of vulnerability, and use a callback server like attacker.example to test for out-of-band vulnerabilities.

http
POST /mcp HTTP/1.1
Host: target.com
Content-Type: application/json

Follow #burp-suite, #mcp or #streamable-http for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.

Comments

No comments yet.