Skip to main content
Glama
sample.rb482 B
require 'net/http' def insecure_function(url) uri = URI(url) response = Net::HTTP.get(uri) puts "Response: #{response}" end user_input = 'http://malicious-website.com' insecure_function(user_input) # (CWE-601) # This sample Ruby file includes a function that performs an insecure HTTP request without any proper # input validation or sanitization. It can be used to test SAST tools' ability to identify security # vulnerabilities like unvalidated redirects and forwards.

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