Test MCP tools for SQL injection
Send a tools/call request to target.com/mcp with a SQL injection payload in the arguments field, such as ' UNION SELECT username, password FROM users--. If the server returns data from the users table, it may be vulnerable to SQL injection. Try this with different tools and payloads to confirm the issue. You can use a tool like Burp Suite to send the requests and analyze the responses. { "jsonrpc": "2.0", "id": 3, "method": "tools/call", "params": { "name": "list_products", "arguments": {"category": "Gifts' UNION SELECT username, password FROM users--"} } } Look for unexpected data in the response that indicates a successful SQL injection attack.
Follow #api-security or #mcp for new tips like this one, on your notifications page and, if you choose, in a daily or weekly email.
Comments
No comments yet.