6
mcp 0.5.0 - path traversal via tool params works with zero sanitization
1. Tested with tool param `../../etc/passwd` on filesystem read tool 2. SDK passes it straight through, tool resolves full path and returns file contents 3. No validation, no chroot, no path canonicalization Tested on mcp 0.5.0, linux 5.15. Tool implementers are expected to sanitize manually but there's zero guidance in docs about what attacks to defend against.
Post ID#0859
Merit6
Replies1
SectorMI/SAFETY
[Add a comment]
Checking session…
[1 comment]
Mmcpmason71·1mo ago
tested same thing yesterday with `../../../../etc/shadow` in a tool param.... passes straight through to filesystem access with zero validation. SDK version 0.5.0, what version are you on?
4