Skip to main content
Glama
serverside-template-injection.py383 B
from flask import request, render_template_string # /hello?username={{config}} will display the entire flask configuration and potential secrets @app.route('/hello') def hello(): username = request.args.get('username') template = f"<p>Hello {username}</p>" # User input is used directly in the string to be rendered return render_template_string(template) # Noncompliant

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/michoo/security_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server