Skip to content
wiroai/Wiro-MCP·Indexed by this site · Originally publishedDate not given· Defenses →· Its place in the scan record →

Wiro-MCP fixes upload_file download, restricted to public http(s) hosts only

fix: restrict upload_file downloads to public http(s) hosts · wiroai/Wiro-MCP@ac61f79

AI summary

A commit to the Wiro-MCP repository fixes remote file download in the upload_file tool, restricting it to public http(s) hosts only and prohibiting other protocols as well as non-public addresses such as loopback, private, and link-local. Code comments state that the download URL is chosen by the model and is influenced by content the model reads, hence this restriction; IP validation is placed inside the socket's DNS resolution to ensure that what is validated is the address actually connected to, and redirects are followed manually hop by hop with re-validation at each hop. The implementation blocks IPv4 ranges including 0.0.0.0/8, 10/8, 127/8, 172.16/12, 192.168/16, 169.254/16, and 100.64/10, as well as IPv6 loopback, link-local, unique local, multicast, and IPv4-mapped addresses, and sets a 200MB size limit, a maximum of 5 redirects, and a 120-second timeout.

Read originalgithub.com